Commit c2f104000615f1f68ca9be61825add098265053f

Authored by Dmitriy Zaporozhets
1 parent 8457415e

Few fixes to spinach tests

app/views/groups/_projects.html.haml
... ... @@ -3,9 +3,9 @@
3 3 Projects (#{projects.count})
4 4 - if can? current_user, :manage_group, @group
5 5 %span.pull-right
6   - = link_to new_project_path(namespace_id: @group.id), class: "btn" do
  6 + = link_to new_project_path(namespace_id: @group.id), class: "btn btn-new" do
7 7 %i.icon-plus
8   - New Project
  8 + New project
9 9 %ul.well-list
10 10 - if projects.blank?
11 11 %p.nothing_here_message This groups has no projects yet
... ...
features/steps/dashboard/dashboard.rb
... ... @@ -4,7 +4,7 @@ class Dashboard < Spinach::FeatureSteps
4 4 include SharedProject
5 5  
6 6 Then 'I should see "New Project" link' do
7   - page.should have_link "New Project"
  7 + page.should have_link "New project"
8 8 end
9 9  
10 10 Then 'I should see "Shop" project link' do
... ...
features/steps/group/group.rb
... ... @@ -67,7 +67,7 @@ class Groups < Spinach::FeatureSteps
67 67 end
68 68  
69 69 When 'I click new group link' do
70   - click_link "New Group"
  70 + click_link "New group"
71 71 end
72 72  
73 73 And 'submit form with new group info' do
... ...