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
37187336
Commit
37187336
authored
Feb 21, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Team features are green now
parent
28da2a8b
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
21 deletions
+21
-21
features/project/source/browse_files.feature
features/project/source/browse_files.feature
+2
-2
features/project/source/git_blame.feature
features/project/source/git_blame.feature
+1
-1
features/steps/admin/admin_teams.rb
features/steps/admin/admin_teams.rb
+7
-7
features/steps/project/project_browse_files.rb
features/steps/project/project_browse_files.rb
+3
-3
features/steps/project/project_browse_git_repo.rb
features/steps/project/project_browse_git_repo.rb
+3
-3
features/steps/userteams/userteams.rb
features/steps/userteams/userteams.rb
+4
-4
spec/support/stubbed_repository.rb
spec/support/stubbed_repository.rb
+1
-1
No files found.
features/project/source/browse_files.feature
View file @
37187336
...
...
@@ -12,7 +12,7 @@ Feature: Project Browse files
Then
I should see files from repository for
"8470d70"
Scenario
:
I
browse file content
Given
I click on
"Gemfile"
file in repo
Given
I click on
"Gemfile
.lock
"
file in repo
Then
I should see it content
Scenario
:
I
browse raw file
...
...
@@ -22,6 +22,6 @@ Feature: Project Browse files
@javascript
Scenario
:
I
can edit file
Given
I click on
"Gemfile"
file in repo
Given
I click on
"Gemfile
.lock
"
file in repo
And
I click button
"edit"
Then
I can edit code
features/project/source/git_blame.feature
View file @
37187336
...
...
@@ -5,6 +5,6 @@ Feature: Project Browse git repo
Given
I visit project source page
Scenario
:
I
blame file
Given
I click on
"Gemfile"
file in repo
Given
I click on
"Gemfile
.lock
"
file in repo
And
I click blame button
Then
I should see git file blame
features/steps/admin/admin_teams.rb
View file @
37187336
...
...
@@ -9,7 +9,7 @@ class AdminTeams < Spinach::FeatureSteps
end
And
'Create gitlab user "John"'
do
@user
=
create
(
:user
,
:name
=>
"John"
)
@user
=
create
(
:user
,
name:
"John"
)
end
And
'I click new team link'
do
...
...
@@ -50,8 +50,8 @@ class AdminTeams < Spinach::FeatureSteps
When
'I select user "John" from user list as "Developer"'
do
@user
||=
User
.
find_by_name
(
"John"
)
within
"#team_members"
do
select
@user
.
name
,
:from
=>
"user_ids"
select
"Developer"
,
:from
=>
"default_project_access"
select
"
#{
@user
.
name
}
(
#{
@user
.
email
}
)"
,
from:
"user_ids"
select
"Developer"
,
from:
"default_project_access"
end
end
...
...
@@ -89,8 +89,8 @@ class AdminTeams < Spinach::FeatureSteps
When
'I select project "Shop" with max access "Reporter"'
do
@project
||=
Project
.
find_by_name
(
"Shop"
)
within
"#assign_projects"
do
select
@project
.
name
,
:from
=>
"project_ids"
select
"Reporter"
,
:from
=>
"greatest_project_access"
select
@project
.
name
,
from:
"project_ids"
select
"Reporter"
,
from:
"greatest_project_access"
end
end
...
...
@@ -127,8 +127,8 @@ class AdminTeams < Spinach::FeatureSteps
When
'I select user "Jimm" ub team members list as "Master"'
do
user
=
User
.
find_by_name
(
"Jimm"
)
within
"#team_members"
do
select
user
.
name
,
:from
=>
"user_ids"
select
"Developer"
,
:from
=>
"default_project_access"
select
"
#{
user
.
name
}
(
#{
user
.
email
}
)"
,
from:
"user_ids"
select
"Developer"
,
from:
"default_project_access"
end
end
...
...
features/steps/project/project_browse_files.rb
View file @
37187336
...
...
@@ -16,12 +16,12 @@ class ProjectBrowseFiles < Spinach::FeatureSteps
page
.
should
have_content
"Gemfile"
end
Given
'I click on "Gemfile" file in repo'
do
click_link
"Gemfile"
Given
'I click on "Gemfile
.lock
" file in repo'
do
click_link
"Gemfile
.lock
"
end
Then
'I should see it content'
do
page
.
should
have_content
"
rubygems.org
"
page
.
should
have_content
"
DEPENDENCIES
"
end
And
'I click link "raw"'
do
...
...
features/steps/project/project_browse_git_repo.rb
View file @
37187336
...
...
@@ -3,8 +3,8 @@ class ProjectBrowseGitRepo < Spinach::FeatureSteps
include
SharedProject
include
SharedPaths
Given
'I click on "Gemfile" file in repo'
do
click_link
"Gemfile"
Given
'I click on "Gemfile
.lock
" file in repo'
do
click_link
"Gemfile
.lock
"
end
And
'I click blame button'
do
...
...
@@ -12,7 +12,7 @@ class ProjectBrowseGitRepo < Spinach::FeatureSteps
end
Then
'I should see git file blame'
do
page
.
should
have_content
"
rubygems.org
"
page
.
should
have_content
"
DEPENDENCIES
"
page
.
should
have_content
"Dmitriy Zaporozhets"
page
.
should
have_content
"Moving to rails 3.2"
end
...
...
features/steps/userteams/userteams.rb
View file @
37187336
...
...
@@ -177,8 +177,8 @@ class Userteams < Spinach::FeatureSteps
And
'I select user "John" from list with role "Reporter"'
do
user
=
User
.
find_by_name
(
"John"
)
within
"#team_members"
do
select
user
.
name
,
:from
=>
"user_ids"
select
"Reporter"
,
:from
=>
"default_project_access"
select
"
#{
user
.
name
}
(
#{
user
.
email
}
)"
,
from:
"user_ids"
select
"Reporter"
,
from:
"default_project_access"
end
click_button
"Add"
end
...
...
@@ -213,8 +213,8 @@ class Userteams < Spinach::FeatureSteps
When
'I submit form with selected project and max access'
do
within
"#assign_projects"
do
select
@project
.
name_with_namespace
,
:from
=>
"project_ids"
select
"Reporter"
,
:from
=>
"greatest_project_access"
select
@project
.
name_with_namespace
,
from:
"project_ids"
select
"Reporter"
,
from:
"greatest_project_access"
end
click_button
"Add"
end
...
...
spec/support/stubbed_repository.rb
View file @
37187336
...
...
@@ -34,7 +34,7 @@ class Project
end
class
MergeRequest
def
can_be_merged
def
c
heck_if_c
an_be_merged
true
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