Replace projects_box with ui-box. Fixed team spinach test

5-0-stable
Dmitriy Zaporozhets 2013-03-14 13:12:11 +02:00
parent e84df44ea0
commit 88d42c2e1c
8 changed files with 15 additions and 20 deletions

View File

@ -6,11 +6,8 @@
.side {
@extend .pull-right;
.projects_box, .ui-box {
.ui-box {
margin: 3px;
}
.projects_box {
> .title {
padding: 2px 15px;
}

View File

@ -12,10 +12,13 @@
- groups.each do |group|
%li
= link_to group_path(id: group.path), class: dom_class(group) do
%strong.well-title= truncate(group.name, length: 35)
%span.pull-right.light
- if group.owner == current_user
%i.icon-wrench
%strong.well-title
= truncate(group.name, length: 35)
%span.arrow
→
%span.last_activity
%strong Owner:
%span= group.owner_name
- if groups.blank?
%li
%h3.nothing_here_message You have no groups yet.

View File

@ -1,4 +1,4 @@
.projects_box
.ui-box
%h5.title
Projects
%small

View File

@ -1,4 +1,4 @@
.projects_box
.ui-box
%h5.title
Projects
%small

View File

@ -1,4 +1,4 @@
.projects_box
.ui-box
%h5.title
Projects
%small

View File

@ -11,7 +11,7 @@
.span9
.tab-content
.tab-pane.active#tab-projects
.ui-box
.ui-box.projects-table
%h5.title Projects
%ul.well-list
- @projects.each do |project|

View File

@ -206,12 +206,8 @@ class Userteams < Spinach::FeatureSteps
visit team_path(team)
end
When 'I click on link "Projects"' do
click_link "Projects"
end
And 'I click link "Assign project to Team"' do
click_link "Assign project to Team"
When 'I click on link "Assign Project"' do
click_link "Assign Project"
end
Then 'I should see form with my own project in avaliable projects list' do

View File

@ -59,8 +59,7 @@ Feature: UserTeams
Given I have team with projects and members
And I have my own project without teams
And I visit my team page
When I click on link "Projects"
And I click link "Assign project to Team"
When I click on link "Assign Project"
Then I should see form with my own project in avaliable projects list
When I submit form with selected project and max access
Then I should see my own project in team projects list