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
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
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