Few fixes to spinach tests

This commit is contained in:
Dmitriy Zaporozhets 2013-08-27 13:49:29 +03:00
parent 8457415eb9
commit c2f1040006
3 changed files with 4 additions and 4 deletions

View file

@ -3,9 +3,9 @@
Projects (#{projects.count})
- if can? current_user, :manage_group, @group
%span.pull-right
= link_to new_project_path(namespace_id: @group.id), class: "btn" do
= link_to new_project_path(namespace_id: @group.id), class: "btn btn-new" do
%i.icon-plus
New Project
New project
%ul.well-list
- if projects.blank?
%p.nothing_here_message This groups has no projects yet

View file

@ -4,7 +4,7 @@ class Dashboard < Spinach::FeatureSteps
include SharedProject
Then 'I should see "New Project" link' do
page.should have_link "New Project"
page.should have_link "New project"
end
Then 'I should see "Shop" project link' do

View file

@ -67,7 +67,7 @@ class Groups < Spinach::FeatureSteps
end
When 'I click new group link' do
click_link "New Group"
click_link "New group"
end
And 'submit form with new group info' do