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
9d2b8326
Commit
9d2b8326
authored
Dec 14, 2015
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update commits spinach tests related to displaying build status
parent
32d83ee7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
features/project/commits/commits.feature
features/project/commits/commits.feature
+2
-1
features/steps/project/commits/commits.rb
features/steps/project/commits/commits.rb
+4
-0
No files found.
features/project/commits/commits.feature
View file @
9d2b8326
...
@@ -19,7 +19,8 @@ Feature: Project Commits
...
@@ -19,7 +19,8 @@ Feature: Project Commits
Scenario
:
I
browse commit with ci from list
Scenario
:
I
browse commit with ci from list
Given
commit has ci status
Given
commit has ci status
And
I click on commit link
And
repository contains
".gitlab-ci.yml"
file
When
I click on commit link
Then
I see commit ci info
Then
I see commit ci info
And
I click status link
And
I click status link
Then
I see builds list
Then
I see builds list
...
...
features/steps/project/commits/commits.rb
View file @
9d2b8326
...
@@ -108,6 +108,10 @@ class Spinach::Features::ProjectCommits < Spinach::FeatureSteps
...
@@ -108,6 +108,10 @@ class Spinach::Features::ProjectCommits < Spinach::FeatureSteps
create
:ci_build
,
commit:
ci_commit
create
:ci_build
,
commit:
ci_commit
end
end
step
'repository contains ".gitlab-ci.yml" file'
do
allow_any_instance_of
(
Ci
::
Commit
).
to
receive
(
:ci_yaml_file
).
and_return
(
String
.
new
)
end
step
'I see commit ci info'
do
step
'I see commit ci info'
do
expect
(
page
).
to
have_content
"build: pending"
expect
(
page
).
to
have_content
"build: pending"
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