diff options
| author | mo khan <mo@mokhan.ca> | 2016-11-18 10:26:48 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2016-11-18 10:26:48 -0700 |
| commit | 32938166ecb1d446101f0b312a3ba4635a010bdc (patch) | |
| tree | 216abfe1666126bda23cc2b27e5222c4e8f0ec9e | |
| parent | d6f5d1d392f160da21d5191326848e44131ead91 (diff) | |
use match_array
| -rw-r--r-- | spec/lib/totp_command_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/lib/totp_command_spec.rb b/spec/lib/totp_command_spec.rb index 7aff1d9..58405e4 100644 --- a/spec/lib/totp_command_spec.rb +++ b/spec/lib/totp_command_spec.rb @@ -24,7 +24,8 @@ module TFA it "returns the one time password for all keys" do storage.save("development", development_secret) storage.save("staging", staging_secret) - expect(subject.run(nil)).to eql([ + + expect(subject.run(nil)).to match_array([ { "development" => code_for(development_secret) }, { "staging" => code_for(staging_secret) } ]) |
