Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5cd63ace
Commit
5cd63ace
authored
Apr 01, 2019
by
Thong Kuah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't modify String in instance_configuration_spec
parent
3a1a12b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/models/instance_configuration_spec.rb
spec/models/instance_configuration_spec.rb
+2
-2
No files found.
spec/models/instance_configuration_spec.rb
View file @
5cd63ace
...
@@ -32,8 +32,8 @@ describe InstanceConfiguration do
...
@@ -32,8 +32,8 @@ describe InstanceConfiguration do
end
end
def
stub_pub_file
(
exist:
true
)
def
stub_pub_file
(
exist:
true
)
path
=
'spec/fixtures/ssh_host_example_key.pub
'
path
=
exist
?
'spec/fixtures/ssh_host_example_key.pub'
:
'spec/fixtures/ssh_host_example_key.pub.random
'
path
<<
'random'
unless
exist
allow
(
subject
).
to
receive
(
:ssh_algorithm_file
).
and_return
(
Rails
.
root
.
join
(
path
))
allow
(
subject
).
to
receive
(
:ssh_algorithm_file
).
and_return
(
Rails
.
root
.
join
(
path
))
end
end
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