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
iv
gitlab-ce
Commits
b846ac10
Commit
b846ac10
authored
Aug 03, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Milestones cucumber. Renamed app security test
parent
6de48825
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
52 deletions
+57
-52
features/projects/issues/milestones.feature
features/projects/issues/milestones.feature
+18
-0
features/step_definitions/project_merge_requests_steps.rb
features/step_definitions/project_merge_requests_steps.rb
+38
-0
spec/requests/access_spec.rb
spec/requests/access_spec.rb
+1
-1
spec/requests/milestones_spec.rb
spec/requests/milestones_spec.rb
+0
-51
No files found.
features/projects/issues/milestones.feature
View file @
b846ac10
Feature
:
Milestones
Background
:
Given
I signin as a user
And
I own project
"Shop"
And
project
"Shop"
has milestone
"v2.2"
Given
I visit project
"Shop"
milestones page
Scenario
:
I
should see active milestones
Then
I should see milestone
"v2.2"
Scenario
:
I
should see milestone
Given
I click link
"v2.2"
Then
I should see milestone
"v2.2"
Scenario
:
I
create new milestone
Given
I click link
"New Milestone"
And
I submit new milestone
"v2.3"
Then
I should see milestone
"v2.3"
features/step_definitions/project_merge_requests_steps.rb
0 → 100644
View file @
b846ac10
Given
/^project "(.*?)" has milestone "(.*?)"$/
do
|
arg1
,
arg2
|
project
=
Project
.
find_by_name
(
arg1
)
milestone
=
Factory
:milestone
,
:title
=>
arg2
,
:project
=>
project
3
.
times
do
|
i
|
issue
=
Factory
:issue
,
:project
=>
project
,
:milestone
=>
milestone
end
end
Given
/^I visit project "(.*?)" milestones page$/
do
|
arg1
|
@project
=
Project
.
find_by_name
(
arg1
)
visit
project_milestones_path
(
@project
)
end
Then
/^I should see active milestones$/
do
milestone
=
@project
.
milestones
.
first
page
.
should
have_content
(
milestone
.
title
[
0
..
10
])
page
.
should
have_content
(
milestone
.
expires_at
)
page
.
should
have_content
(
"Browse Issues"
)
end
Then
/^I should see milestone "(.*?)"$/
do
|
arg1
|
milestone
=
@project
.
milestones
.
find_by_title
(
arg1
)
page
.
should
have_content
(
milestone
.
title
[
0
..
10
])
page
.
should
have_content
(
milestone
.
expires_at
)
page
.
should
have_content
(
"Browse Issues"
)
end
Given
/^I submit new milestone "(.*?)"$/
do
|
arg1
|
fill_in
"milestone_title"
,
:with
=>
arg1
click_button
"Create milestone"
end
spec/requests/
projects_security
_spec.rb
→
spec/requests/
access
_spec.rb
View file @
b846ac10
require
'spec_helper'
describe
"
Projects Security
"
do
describe
"
Application access
"
do
describe
"GET /"
do
it
{
root_path
.
should
be_allowed_for
:admin
}
it
{
root_path
.
should
be_allowed_for
:user
}
...
...
spec/requests/milestones_spec.rb
deleted
100644 → 0
View file @
6de48825
require
'spec_helper'
describe
"Milestones"
do
let
(
:project
)
{
Factory
:project
}
before
do
login_as
:user
project
.
add_access
(
@user
,
:admin
)
@milestone
=
Factory
:milestone
,
:project
=>
project
@issue
=
Factory
:issue
,
:project
=>
project
@milestone
.
issues
<<
@issue
end
describe
"GET /milestones"
do
before
do
visit
project_milestones_path
(
project
)
end
subject
{
page
}
it
{
should
have_content
(
@milestone
.
title
[
0
..
10
])
}
it
{
should
have_content
(
@milestone
.
expires_at
)
}
it
{
should
have_content
(
"Browse Issues"
)
}
end
describe
"GET /milestone/:id"
do
before
do
visit
project_milestone_path
(
project
,
@milestone
)
end
subject
{
page
}
it
{
should
have_content
(
@milestone
.
title
[
0
..
10
])
}
it
{
should
have_content
(
@milestone
.
expires_at
)
}
it
{
should
have_content
(
"Browse Issues"
)
}
end
describe
"GET /milestones/new"
do
before
do
visit
new_project_milestone_path
(
project
)
fill_in
"milestone_title"
,
:with
=>
"v2.3"
click_button
"Create milestone"
end
it
{
current_path
.
should
==
project_milestone_path
(
project
,
project
.
milestones
.
last
)
}
it
{
page
.
should
have_content
(
project
.
milestones
.
last
.
title
[
0
..
10
])
}
it
{
page
.
should
have_content
(
project
.
milestones
.
last
.
expires_at
)
}
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