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
Léo-Paul Géneau
gitlab-ce
Commits
3b1993a8
Commit
3b1993a8
authored
Sep 04, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rspec test fixes
parent
38f15514
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
10 deletions
+7
-10
spec/features/issues/form_spec.rb
spec/features/issues/form_spec.rb
+2
-4
spec/features/merge_requests/form_spec.rb
spec/features/merge_requests/form_spec.rb
+2
-5
spec/helpers/groups_helper_spec.rb
spec/helpers/groups_helper_spec.rb
+3
-1
No files found.
spec/features/issues/form_spec.rb
View file @
3b1993a8
...
...
@@ -166,12 +166,10 @@ describe 'New/edit issue', :js do
end
end
page
.
within
'.
issuable-meta
'
do
page
.
within
'.
breadcrumbs
'
do
issue
=
Issue
.
find_by
(
title:
'title'
)
expect
(
page
).
to
have_text
(
"Issue
#{
issue
.
to_reference
}
"
)
# compare paths because the host differ in test
expect
(
find_link
(
issue
.
to_reference
)[
:href
]).
to
end_with
(
issue_path
(
issue
))
expect
(
page
).
to
have_text
(
"Issues
#{
issue
.
to_reference
}
"
)
end
end
...
...
spec/features/merge_requests/form_spec.rb
View file @
3b1993a8
...
...
@@ -84,13 +84,10 @@ describe 'New/edit merge request', :js do
end
end
page
.
within
'.
issuable-meta
'
do
page
.
within
'.
breadcrumbs
'
do
merge_request
=
MergeRequest
.
find_by
(
source_branch:
'fix'
)
expect
(
page
).
to
have_text
(
"Merge request
#{
merge_request
.
to_reference
}
"
)
# compare paths because the host differ in test
expect
(
find_link
(
merge_request
.
to_reference
)[
:href
])
.
to
end_with
(
merge_request_path
(
merge_request
))
expect
(
page
).
to
have_text
(
"Merge Requests
#{
merge_request
.
to_reference
}
"
)
end
end
...
...
spec/helpers/groups_helper_spec.rb
View file @
3b1993a8
...
...
@@ -91,7 +91,9 @@ describe GroupsHelper do
let!
(
:very_deep_nested_group
)
{
create
(
:group
,
parent:
deep_nested_group
)
}
it
'outputs the groups in the correct order'
do
expect
(
helper
.
group_title
(
very_deep_nested_group
)).
to
match
(
/>
#{
group
.
name
}
<\/a>.*>
#{
nested_group
.
name
}
<\/a>.*>
#{
deep_nested_group
.
name
}
<\/a>/
)
expect
(
helper
.
group_title
(
very_deep_nested_group
))
.
to
match
(
/<li style="text-indent: 16px;"><a.*>
#{
deep_nested_group
.
name
}
.*<\/li>.*<a.*>
#{
very_deep_nested_group
.
name
}
<\/a>/m
)
# expect(helper.group_title(very_deep_nested_group)).to match(/<\/li>.*<a.*>#{very_deep_nested_group.name}<\/a>/)
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