spec/keylime/credential_spec.rb in keylime-0.2.1 vs spec/keylime/credential_spec.rb in keylime-0.3.0
- old
+ new
@@ -34,11 +34,11 @@
it 'returns a credential if it exists' do
subject.set secret
expect(subject.get.password).to eql secret
end
it 'prompts the user if the credential does not exist' do
- allow(STDIN).to receive(:gets) { "#{secret}\n" }
- expect(STDOUT).to receive(:print).with('Question? ')
+ allow($stdin).to receive(:gets) { "#{secret}\n" }
+ expect($stdout).to receive(:print).with('Question? ')
expect(subject.get!('Question').password).to eql secret
end
end
describe '#set' do