BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
b371d751
Commit
b371d751
authored
Aug 02, 2016
by
Keith Pope
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tidy the key spec and fix failing user spec
parent
4768afbd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
key_spec.rb
spec/models/key_spec.rb
+1
-1
user_spec.rb
spec/models/user_spec.rb
+1
-1
No files found.
spec/models/key_spec.rb
View file @
b371d751
...
...
@@ -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
...
...
spec/models/user_spec.rb
View file @
b371d751
...
...
@@ -643,7 +643,7 @@ describe User, models: true do
user
=
create
:user
key
=
create
:key
,
key:
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD33bWLBxu48Sev9Fert1yzEO4WGcWglWF7K/AwblIUFselOt/QdOL9DSjpQGxLagO1s9wl53STIO8qGS4Ms0EJZyIXOEFMjFJ5xmjSy+S37By4sG7SsltQEHMxtbtFOaW5LV2wCrX+rUsRNqLMamZjgjcPO0/EgGCXIGMAYW4O7cwGZdXWYIhQ1Vwy+CsVMDdPkPgBXqK7nR/ey8KMs8ho5fMNgB5hBw/AL9fNGhRw3QTD6Q12Nkhl4VZES2EsZqlpNnJttnPdp847DUsT6yuLRlfiQfz5Cn9ysHFdXObMN5VYIiPFwHeYCZp1X2S4fDZooRE8uOLTfxWHPXwrhqSH"
,
user_id:
user
.
id
expect
(
user
.
all_ssh_keys
).
to
include
(
key
.
key
)
expect
(
user
.
all_ssh_keys
).
to
include
(
a_string_starting_with
(
key
.
key
)
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment