Skip to content

Commit

Permalink
Update spec/lib/gooder_data/session_id_spec.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Victor Policastro <[email protected]>
  • Loading branch information
andrelrg and victorpolicastro authored Feb 27, 2023
1 parent 33c532d commit 68dd857
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/lib/gooder_data/session_id_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
let(:gd_sso_recipient) { GooderData.configuration.good_data_sso_recipient }
let(:gd_sso_public_key_url) { GooderData.configuration.good_data_sso_public_key_url }

before {
before do
allow(GooderData::SSO).to receive(:import_key!).and_return(false)
allow(GPGME::Key).to receive(:find).with(:public, gd_sso_recipient) { [] }
}
end

it "should import the gooddata-sso.pub from gd server" do
expect(GooderData::SSO).to receive(:import_key!).with(gd_sso_public_key_url)
Expand Down

0 comments on commit 68dd857

Please sign in to comment.