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
a1a9a1cf
Commit
a1a9a1cf
authored
Apr 05, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Specs for toggle Whitespaces Changes
parent
66a5d0fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
spec/features/merge_requests/toggle_whitespace_changes.rb
spec/features/merge_requests/toggle_whitespace_changes.rb
+22
-0
No files found.
spec/features/merge_requests/toggle_whitespace_changes.rb
0 → 100644
View file @
a1a9a1cf
require
'spec_helper'
feature
'Toggle Whitespace Changes'
,
js:
true
,
feature:
true
do
let
(
:merge_request
)
{
create
(
:merge_request
)
}
let
(
:project
)
{
merge_request
.
source_project
}
before
do
login_as
:admin
visit
diffs_namespace_project_merge_request_path
(
project
.
namespace
,
project
,
merge_request
)
end
it
'should have a button to toggle whitespace changes'
do
expect
(
page
).
to
have_content
"Hide whitespace changes"
end
describe
'clicking hide whitespace changes button'
do
it
'should hide whitespace changes'
do
find
(
'a'
,
text:
"Hide whitespace changes"
).
click
expect
(
page
).
to
have_content
"Show whitespace changes"
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