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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
700d4387
Commit
700d4387
authored
May 31, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use stub_const to stub constants instead of redefining them
They're called constants for a reason, after all.
parent
1f9a2ab7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
features/steps/project/commits/commits.rb
features/steps/project/commits/commits.rb
+1
-2
No files found.
features/steps/project/commits/commits.rb
View file @
700d4387
...
@@ -69,14 +69,13 @@ class Spinach::Features::ProjectCommits < Spinach::FeatureSteps
...
@@ -69,14 +69,13 @@ class Spinach::Features::ProjectCommits < Spinach::FeatureSteps
end
end
step
'I visit big commit page'
do
step
'I visit big commit page'
do
Commit
::
DIFF_SAFE_FILES
=
20
stub_const
(
'Commit::DIFF_SAFE_FILES'
,
20
)
visit
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
sample_big_commit
.
id
)
visit
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
sample_big_commit
.
id
)
end
end
step
'I see big commit warning'
do
step
'I see big commit warning'
do
page
.
should
have_content
sample_big_commit
.
message
page
.
should
have_content
sample_big_commit
.
message
page
.
should
have_content
"Too many changes"
page
.
should
have_content
"Too many changes"
Commit
::
DIFF_SAFE_FILES
=
100
end
end
step
'I visit a commit with an image that changed'
do
step
'I visit a commit with an image that changed'
do
...
...
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