From 32938166ecb1d446101f0b312a3ba4635a010bdc Mon Sep 17 00:00:00 2001 From: mo khan Date: Fri, 18 Nov 2016 10:26:48 -0700 Subject: use match_array --- spec/lib/totp_command_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) } ]) -- cgit v1.2.3