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
595a092a
Commit
595a092a
authored
Jul 25, 2019
by
Thong Kuah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix frozen string error
parent
f0391c25
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
spec/features/projects/commits/user_browses_commits_spec.rb
spec/features/projects/commits/user_browses_commits_spec.rb
+1
-1
spec/support/helpers/api_helpers.rb
spec/support/helpers/api_helpers.rb
+5
-4
No files found.
spec/features/projects/commits/user_browses_commits_spec.rb
View file @
595a092a
...
...
@@ -13,7 +13,7 @@ describe 'User browses commits' do
it
'renders commit'
do
visit
project_commit_path
(
project
,
sample_commit
.
id
)
expect
(
page
).
to
have_content
(
sample_commit
.
message
.
gsub
!
(
/\s+/
,
' '
))
expect
(
page
).
to
have_content
(
sample_commit
.
message
.
gsub
(
/\s+/
,
' '
))
.
and
have_content
(
"Showing
#{
sample_commit
.
files_changed_count
}
changed files"
)
.
and
have_content
(
'Side-by-side'
)
end
...
...
spec/support/helpers/api_helpers.rb
View file @
595a092a
...
...
@@ -32,12 +32,13 @@ module ApiHelpers
end
if
query_string
full_path
<<
(
path
.
index
(
'?'
)
?
'&'
:
'?'
)
full_path
<<
query_string
end
separator
=
path
.
index
(
'?'
)
?
'&'
:
'?'
full_path
+
separator
+
query_string
else
full_path
end
end
def
expect_paginated_array_response
(
items
)
expect
(
response
).
to
have_gitlab_http_status
(
200
)
...
...
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