diff options
| author | Robert Speicher <rspeicher@gmail.com> | 2015-06-18 22:13:32 -0400 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-06-22 12:13:45 +0200 |
| commit | afec5efc7dd0d0a063c30c3fff5ea5bbf59f9f48 (patch) | |
| tree | 24a40ef59222c3c8e82eb8cbd4220e10e0c0e8d3 /features/steps/search.rb | |
| parent | d6cd2e6a53aca48f76296cd6b89b0f2b41b641ed (diff) | |
| download | gitlab-ce-afec5efc7dd0d0a063c30c3fff5ea5bbf59f9f48.tar.gz | |
Fix features syntax
Diffstat (limited to 'features/steps/search.rb')
| -rw-r--r-- | features/steps/search.rb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/features/steps/search.rb b/features/steps/search.rb index fec5d9f0e4e..87893aa0205 100644 --- a/features/steps/search.rb +++ b/features/steps/search.rb @@ -52,7 +52,9 @@ class Spinach::Features::Search < Spinach::FeatureSteps end step 'I should see code results for project "Shop"' do - expect(page).to have_content 'Update capybara, rspec-rails, poltergeist to recent versions' + page.within('.results') do + page.should have_content 'Update capybara, rspec-rails, poltergeist to recent versions' + end end step 'I search for "Contibuting"' do @@ -71,7 +73,9 @@ class Spinach::Features::Search < Spinach::FeatureSteps end step 'I should see "Foo" link in the search results' do - expect(find(:css, '.search-results')).to have_link 'Foo' + page.within('.results') do + find(:css, '.search-results').should have_link 'Foo' + end end step 'I should not see "Bar" link in the search results' do @@ -79,7 +83,9 @@ class Spinach::Features::Search < Spinach::FeatureSteps end step 'I should see "test_wiki" link in the search results' do - expect(find(:css, '.search-results')).to have_link 'test_wiki.md' + page.within('.results') do + find(:css, '.search-results').should have_link 'test_wiki.md' + end end step 'project has Wiki content' do |
