Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-07-05 14:16:50 +0300
committerAlexis Reigel <mail@koffeinfrei.org>2017-07-27 16:43:37 +0300
commitd9fd3709abb7897785ac111c217b532663313abd (patch)
treecf14a0423fff126fef654a7fac28dc99e7f7b4ef /spec/models/gpg_key_spec.rb
parent075dae65b1a5b57788e4823b09bdcb8fa6eeaf8a (diff)
use hash instead of 2d array
Diffstat (limited to 'spec/models/gpg_key_spec.rb')
-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