Improve readme tests

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2015-07-09 14:31:03 +02:00
parent 846538076b
commit d8dfbc5118
No known key found for this signature in database
GPG Key ID: 161B5D6A44D3D88A
1 changed files with 6 additions and 3 deletions

View File

@ -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