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
65cb51af
Commit
65cb51af
authored
Sep 30, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a feature for readme on project show page.
parent
49157242
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
7 deletions
+22
-7
features/project/project.feature
features/project/project.feature
+8
-1
features/steps/project/project.rb
features/steps/project/project.rb
+14
-6
No files found.
features/project/project.feature
View file @
65cb51af
...
@@ -27,7 +27,6 @@ Feature: Project Feature
...
@@ -27,7 +27,6 @@ Feature: Project Feature
Scenario
:
I
should see project readme and version
Scenario
:
I
should see project readme and version
When
I visit project
"Shop"
page
When
I visit project
"Shop"
page
Then
I should see project
"Shop"
README link
And
I should see project
"Shop"
version
And
I should see project
"Shop"
version
Scenario
:
I
should change project default branch
Scenario
:
I
should change project default branch
...
@@ -35,3 +34,11 @@ Feature: Project Feature
...
@@ -35,3 +34,11 @@ Feature: Project Feature
And
change project default branch
And
change project default branch
And
I save project
And
I save project
Then
I should see project default branch changed
Then
I should see project default branch changed
@javascript
Scenario
:
I
should have default tab per my preference
And
I own project
"Forum"
When
I select project
"Forum"
README tab
Then
I should see project
"Forum"
README
And
I visit project
"Shop"
page
Then
I should see project
"Shop"
README
features/steps/project/project.rb
View file @
65cb51af
...
@@ -25,12 +25,6 @@ class Spinach::Features::ProjectFeature < Spinach::FeatureSteps
...
@@ -25,12 +25,6 @@ class Spinach::Features::ProjectFeature < Spinach::FeatureSteps
project
.
path
.
should
==
"new-path"
project
.
path
.
should
==
"new-path"
end
end
step
'I should see project "Shop" README link'
do
within
'.project-side'
do
page
.
should
have_content
"README.md"
end
end
step
'I should see project "Shop" version'
do
step
'I should see project "Shop" version'
do
within
'.project-side'
do
within
'.project-side'
do
page
.
should
have_content
"Version: 6.7.0.pre"
page
.
should
have_content
"Version: 6.7.0.pre"
...
@@ -45,4 +39,18 @@ class Spinach::Features::ProjectFeature < Spinach::FeatureSteps
...
@@ -45,4 +39,18 @@ class Spinach::Features::ProjectFeature < Spinach::FeatureSteps
step
'I should see project default branch changed'
do
step
'I should see project default branch changed'
do
find
(
:css
,
'select#project_default_branch'
).
value
.
should
==
'fix'
find
(
:css
,
'select#project_default_branch'
).
value
.
should
==
'fix'
end
end
step
'I select project "Forum" README tab'
do
click_link
'Readme'
end
step
'I should see project "Forum" README'
do
page
.
should
have_link
"README.md"
page
.
should
have_content
"Sample repo for testing gitlab features"
end
step
'I should see project "Shop" README'
do
page
.
should
have_link
"README.md"
page
.
should
have_content
"testme"
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