Sha256: 4b9f0aef5a70b8279e47d26dbc374a6170ecaf823a45daf0b7f522039c1e1e78
Contents?: true
Size: 411 Bytes
Versions: 3
Compression:
Stored size: 411 Bytes
Contents
module TFA describe ShowCommand do subject { ShowCommand.new(storage) } let(:storage) { PStore.new(Tempfile.new('blah').path) } it "retrieves the secret associated with the key given" do secret = SecureRandom.uuid storage.transaction do storage['production'] = secret end result = subject.run(['production']) expect(result).to eql(secret) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tfa-0.0.3 | spec/lib/show_command_spec.rb |
tfa-0.0.2 | spec/lib/show_command_spec.rb |
tfa-0.0.1 | spec/lib/show_command_spec.rb |