diff --git a/spec/lib/gooder_data/session_id_spec.rb b/spec/lib/gooder_data/session_id_spec.rb index d4a65f9..c0cc372 100644 --- a/spec/lib/gooder_data/session_id_spec.rb +++ b/spec/lib/gooder_data/session_id_spec.rb @@ -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)