summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-07-05 13:16:50 +0200
committerAlexis Reigel <mail@koffeinfrei.org>2017-07-27 15:43:37 +0200
commitd9fd3709abb7897785ac111c217b532663313abd (patch)
treecf14a0423fff126fef654a7fac28dc99e7f7b4ef /spec
parent075dae65b1a5b57788e4823b09bdcb8fa6eeaf8a (diff)
downloadgitlab-ce-d9fd3709abb7897785ac111c217b532663313abd.tar.gz
use hash instead of 2d array
Diffstat (limited to 'spec')
-rw-r--r--spec/models/gpg_key_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/models/gpg_key_spec.rb b/spec/models/gpg_key_spec.rb
index 312e026a78e..88b5eb79b59 100644
--- a/spec/models/gpg_key_spec.rb
+++ b/spec/models/gpg_key_spec.rb
@@ -58,10 +58,10 @@ describe GpgKey do
user = create :user, email: 'bette.cartwright@example.com'
gpg_key = create :gpg_key, key: GpgHelpers::User2.public_key, user: user
- expect(gpg_key.emails_with_verified_status).to match_array [
- ['bette.cartwright@example.com', true],
- ['bette.cartwright@example.net', false]
- ]
+ expect(gpg_key.emails_with_verified_status).to eq(
+ 'bette.cartwright@example.com' => true,
+ 'bette.cartwright@example.net' => false
+ )
end
end