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
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
build.feature
features/project/badges/build.feature
+1
-1
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
:
Given
I sign in as a user
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
SharedProject
include
SharedBuilds
...
...
@@ -20,11 +20,8 @@ class Spinach::Features::ProjectBuildsBadge < Spinach::FeatureSteps
expect_badge
(
'running'
)
end
def
svg
Nokogiri
::
HTML
.
parse
(
page
.
body
)
end
def
expect_badge
(
status
)
svg
=
Nokogiri
::
HTML
.
parse
(
page
.
body
)
expect
(
page
.
response_headers
).
to
include
(
'Content-Type'
=>
'image/svg+xml'
)
expect
(
svg
.
at
(
%Q{text:contains("
#{
status
}
")}
)).
to
be_truthy
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