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:
authorKeith Pope <mute.pop3+gitlab@gmail.com>2016-08-02 14:49:59 +0300
committerKeith Pope <mute.pop3+gitlab@gmail.com>2016-08-02 14:49:59 +0300
commitb371d751287fd8a01126c7aa5f156f868d177ef2 (patch)
tree1ee5a03604af7a6a64c03bea281941209d7b5fa0 /spec/models/key_spec.rb
parent4768afbdbf85abbb5e2281c8855e7d27c07a581e (diff)
Tidy the key spec and fix failing user spec
Diffstat (limited to 'spec/models/key_spec.rb')
-rw-r--r--spec/models/key_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/key_spec.rb b/spec/models/key_spec.rb
index a4d46ca84de..6d68e52a822 100644
--- a/spec/models/key_spec.rb
+++ b/spec/models/key_spec.rb
@@ -22,7 +22,7 @@ describe Key, models: true do
describe "#publishable_keys" do
it 'replaces SSH key comment with simple identifier of username + hostname' do
- expect(build(:key, user: user).publishable_key).to match(/#{Regexp.escape(user.name)} \(localhost\)/)
+ expect(build(:key, user: user).publishable_key).to include("#{user.name} (localhost)")
end
end
end