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
iv
gitlab-ce
Commits
f8a33707
Commit
f8a33707
authored
Feb 03, 2016
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
8cd25901
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/features/builds_spec.rb
spec/features/builds_spec.rb
+4
-4
No files found.
spec/features/builds_spec.rb
View file @
f8a33707
...
@@ -18,7 +18,7 @@ describe "Builds" do
...
@@ -18,7 +18,7 @@ describe "Builds" do
visit
namespace_project_builds_path
(
@project
.
namespace
,
@project
,
scope: :running
)
visit
namespace_project_builds_path
(
@project
.
namespace
,
@project
,
scope: :running
)
end
end
it
{
expect
(
page
).
to
have_selector
(
'.
project-issuable-filter
li.active'
,
text:
'Running'
)
}
it
{
expect
(
page
).
to
have_selector
(
'.
nav-links
li.active'
,
text:
'Running'
)
}
it
{
expect
(
page
).
to
have_link
'Cancel running'
}
it
{
expect
(
page
).
to
have_link
'Cancel running'
}
it
{
expect
(
page
).
to
have_content
@build
.
short_sha
}
it
{
expect
(
page
).
to
have_content
@build
.
short_sha
}
it
{
expect
(
page
).
to
have_content
@build
.
ref
}
it
{
expect
(
page
).
to
have_content
@build
.
ref
}
...
@@ -31,7 +31,7 @@ describe "Builds" do
...
@@ -31,7 +31,7 @@ describe "Builds" do
visit
namespace_project_builds_path
(
@project
.
namespace
,
@project
,
scope: :finished
)
visit
namespace_project_builds_path
(
@project
.
namespace
,
@project
,
scope: :finished
)
end
end
it
{
expect
(
page
).
to
have_selector
(
'.
project-issuable-filter
li.active'
,
text:
'Finished'
)
}
it
{
expect
(
page
).
to
have_selector
(
'.
nav-links
li.active'
,
text:
'Finished'
)
}
it
{
expect
(
page
).
to
have_content
'No builds to show'
}
it
{
expect
(
page
).
to
have_content
'No builds to show'
}
it
{
expect
(
page
).
to
have_link
'Cancel running'
}
it
{
expect
(
page
).
to
have_link
'Cancel running'
}
end
end
...
@@ -42,7 +42,7 @@ describe "Builds" do
...
@@ -42,7 +42,7 @@ describe "Builds" do
visit
namespace_project_builds_path
(
@project
.
namespace
,
@project
)
visit
namespace_project_builds_path
(
@project
.
namespace
,
@project
)
end
end
it
{
expect
(
page
).
to
have_selector
(
'.
project-issuable-filter
li.active'
,
text:
'All'
)
}
it
{
expect
(
page
).
to
have_selector
(
'.
nav-links
li.active'
,
text:
'All'
)
}
it
{
expect
(
page
).
to
have_content
@build
.
short_sha
}
it
{
expect
(
page
).
to
have_content
@build
.
short_sha
}
it
{
expect
(
page
).
to
have_content
@build
.
ref
}
it
{
expect
(
page
).
to
have_content
@build
.
ref
}
it
{
expect
(
page
).
to
have_content
@build
.
name
}
it
{
expect
(
page
).
to
have_content
@build
.
name
}
...
@@ -57,7 +57,7 @@ describe "Builds" do
...
@@ -57,7 +57,7 @@ describe "Builds" do
click_link
"Cancel running"
click_link
"Cancel running"
end
end
it
{
expect
(
page
).
to
have_selector
(
'.
project-issuable-filter
li.active'
,
text:
'All'
)
}
it
{
expect
(
page
).
to
have_selector
(
'.
nav-links
li.active'
,
text:
'All'
)
}
it
{
expect
(
page
).
to
have_content
'canceled'
}
it
{
expect
(
page
).
to
have_content
'canceled'
}
it
{
expect
(
page
).
to
have_content
@build
.
short_sha
}
it
{
expect
(
page
).
to
have_content
@build
.
short_sha
}
it
{
expect
(
page
).
to
have_content
@build
.
ref
}
it
{
expect
(
page
).
to
have_content
@build
.
ref
}
...
...
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