diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-07-09 14:31:03 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-07-09 14:31:03 +0200 |
commit | d8dfbc511830aff5e3e3f01f94f91f292b606f44 (patch) | |
tree | bf6564f3791b4adbaa68ba2354e1d4040b1be1de /features | |
parent | 846538076bdbae11b7fbbf2ad28b6c777351cbfc (diff) | |
download | gitlab-ce-d8dfbc511830aff5e3e3f01f94f91f292b606f44.tar.gz |
Improve readme tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'features')
-rw-r--r-- | features/steps/project/project.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/features/steps/project/project.rb b/features/steps/project/project.rb index 9a451c19374..e8f9a80737f 100644 --- a/features/steps/project/project.rb +++ b/features/steps/project/project.rb @@ -86,12 +86,15 @@ class Spinach::Features::Project < Spinach::FeatureSteps end step 'I should see project "Forum" README' do - expect(page).to have_content 'Sample repo for testing gitlab features' + page.within('#README') do + expect(page).to have_content 'Sample repo for testing gitlab features' + end end step 'I should see project "Shop" README' do - expect(page).to have_link 'README.md' - expect(page).to have_content 'testme' + page.within('#README') do + expect(page).to have_content 'testme' + end end step 'I add project tags' do |