diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2014-09-30 16:59:30 +0400 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2014-09-30 16:59:30 +0400 |
commit | 65cb51af3168ce0abceddfe234077ecb1729ac76 (patch) | |
tree | 4ce6ed994c01a73690a01c016b1ea7521465bb29 /features/steps/project/project.rb | |
parent | 49157242edd4dc871b0f1b3b3625f82b98b3806b (diff) |
Add a feature for readme on project show page.
Diffstat (limited to 'features/steps/project/project.rb')
-rw-r--r-- | features/steps/project/project.rb | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/features/steps/project/project.rb b/features/steps/project/project.rb index 3e7061a421f..f543e47b4c2 100644 --- a/features/steps/project/project.rb +++ b/features/steps/project/project.rb @@ -25,12 +25,6 @@ class Spinach::Features::ProjectFeature < Spinach::FeatureSteps project.path.should == "new-path" end - step 'I should see project "Shop" README link' do - within '.project-side' do - page.should have_content "README.md" - end - end - step 'I should see project "Shop" version' do within '.project-side' do page.should have_content "Version: 6.7.0.pre" @@ -45,4 +39,18 @@ class Spinach::Features::ProjectFeature < Spinach::FeatureSteps step 'I should see project default branch changed' do find(:css, 'select#project_default_branch').value.should == 'fix' end + + step 'I select project "Forum" README tab' do + click_link 'Readme' + end + + step 'I should see project "Forum" README' do + page.should have_link "README.md" + page.should have_content "Sample repo for testing gitlab features" + end + + step 'I should see project "Shop" README' do + page.should have_link "README.md" + page.should have_content "testme" + end end |