Commit 3293816

mo khan <mo@mokhan.ca>
2016-11-18 17:26:48
use match_array
1 parent d6f5d1d
Changed files (1)
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) }
           ])