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
12dd7d2a
Commit
12dd7d2a
authored
Sep 26, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issues search test
parent
8063672a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
features/project/issues/issues.feature
features/project/issues/issues.feature
+2
-0
features/steps/project/project_issues.rb
features/steps/project/project_issues.rb
+12
-0
No files found.
features/project/issues/issues.feature
View file @
12dd7d2a
...
@@ -3,6 +3,7 @@ Feature: Project Issues
...
@@ -3,6 +3,7 @@ Feature: Project Issues
Given
I sign in as a user
Given
I sign in as a user
And
I own project
"Shop"
And
I own project
"Shop"
And
project
"Shop"
have
"Release 0.4"
open issue
And
project
"Shop"
have
"Release 0.4"
open issue
And
project
"Shop"
have
"Tweet feature"
open issue
And
project
"Shop"
have
"Release 0.3"
closed issue
And
project
"Shop"
have
"Release 0.3"
closed issue
And
I visit project
"Shop"
issues page
And
I visit project
"Shop"
issues page
...
@@ -40,6 +41,7 @@ Feature: Project Issues
...
@@ -40,6 +41,7 @@ Feature: Project Issues
Given
I fill in issue search with
"Release"
Given
I fill in issue search with
"Release"
Then
I should see
"Release 0.4"
in issues
Then
I should see
"Release 0.4"
in issues
And
I should not see
"Release 0.3"
in issues
And
I should not see
"Release 0.3"
in issues
And
I should not see
"Tweet feature"
in issues
@javascript
@javascript
Scenario
:
I
search issue that not exist
Scenario
:
I
search issue that not exist
...
...
features/steps/project/project_issues.rb
View file @
12dd7d2a
...
@@ -12,6 +12,10 @@ class ProjectIssues < Spinach::FeatureSteps
...
@@ -12,6 +12,10 @@ class ProjectIssues < Spinach::FeatureSteps
page
.
should_not
have_content
"Release 0.3"
page
.
should_not
have_content
"Release 0.3"
end
end
And
'I should not see "Tweet feature" in issues'
do
page
.
should_not
have_content
"Tweet feature"
end
Given
'I click link "Closed"'
do
Given
'I click link "Closed"'
do
click_link
"Closed"
click_link
"Closed"
end
end
...
@@ -123,6 +127,14 @@ class ProjectIssues < Spinach::FeatureSteps
...
@@ -123,6 +127,14 @@ class ProjectIssues < Spinach::FeatureSteps
author:
project
.
users
.
first
)
author:
project
.
users
.
first
)
end
end
And
'project "Shop" have "Tweet feature" open issue'
do
project
=
Project
.
find_by_name
(
"Shop"
)
create
(
:issue
,
title:
"Tweet feature"
,
project:
project
,
author:
project
.
users
.
first
)
end
And
'project "Shop" have "Release 0.3" closed issue'
do
And
'project "Shop" have "Release 0.3" closed issue'
do
project
=
Project
.
find_by_name
(
"Shop"
)
project
=
Project
.
find_by_name
(
"Shop"
)
create
(
:closed_issue
,
create
(
:closed_issue
,
...
...
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