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
debaa813
Commit
debaa813
authored
Feb 10, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move build badge specs to badges directory
parent
28b11963
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
features/project/badges/build.feature
features/project/badges/build.feature
+1
-1
features/steps/project/badges/build.rb
features/steps/project/badges/build.rb
+2
-5
No files found.
features/project/b
uilds/badge
.feature
→
features/project/b
adges/build
.feature
View file @
debaa813
Feature
:
Project B
uilds Badge
Feature
:
Project B
adges Build
Background
:
Background
:
Given
I sign in as a user
Given
I sign in as a user
And
I own a project
And
I own a project
...
...
features/steps/project/b
uilds/badge
.rb
→
features/steps/project/b
adges/build
.rb
View file @
debaa813
class
Spinach::Features::ProjectB
uildsBadge
<
Spinach
::
FeatureSteps
class
Spinach::Features::ProjectB
adgesBuild
<
Spinach
::
FeatureSteps
include
SharedAuthentication
include
SharedAuthentication
include
SharedProject
include
SharedProject
include
SharedBuilds
include
SharedBuilds
...
@@ -20,11 +20,8 @@ class Spinach::Features::ProjectBuildsBadge < Spinach::FeatureSteps
...
@@ -20,11 +20,8 @@ class Spinach::Features::ProjectBuildsBadge < Spinach::FeatureSteps
expect_badge
(
'running'
)
expect_badge
(
'running'
)
end
end
def
svg
Nokogiri
::
HTML
.
parse
(
page
.
body
)
end
def
expect_badge
(
status
)
def
expect_badge
(
status
)
svg
=
Nokogiri
::
HTML
.
parse
(
page
.
body
)
expect
(
page
.
response_headers
).
to
include
(
'Content-Type'
=>
'image/svg+xml'
)
expect
(
page
.
response_headers
).
to
include
(
'Content-Type'
=>
'image/svg+xml'
)
expect
(
svg
.
at
(
%Q{text:contains("
#{
status
}
")}
)).
to
be_truthy
expect
(
svg
.
at
(
%Q{text:contains("
#{
status
}
")}
)).
to
be_truthy
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