|
1 | 1 | Then /^I should see a table header with "([^"]*)"$/ do |content| |
2 | | - page.should have_xpath('//th', :text => content) |
| 2 | + page.should have_xpath('//th', text: content) |
3 | 3 | end |
4 | 4 |
|
5 | 5 | Then /^I should not see a table header with "([^"]*)"$/ do |content| |
6 | | - page.should_not have_xpath('//th', :text => content) |
| 6 | + page.should_not have_xpath('//th', text: content) |
7 | 7 | end |
8 | 8 |
|
9 | 9 | Then /^I should see a sortable table header with "([^"]*)"$/ do |content| |
10 | | - page.should have_css('th.sortable', :text => content) |
| 10 | + page.should have_css('th.sortable', text: content) |
11 | 11 | end |
12 | 12 |
|
13 | 13 | Then /^I should not see a sortable table header with "([^"]*)"$/ do |content| |
14 | | - page.should_not have_css('th.sortable', :text => content) |
| 14 | + page.should_not have_css('th.sortable', text: content) |
15 | 15 | end |
16 | 16 |
|
17 | 17 | Then /^I should not see a sortable table header$/ do |
|
34 | 34 | end |
35 | 35 |
|
36 | 36 | Then /^I should see a link to "([^"]*)"$/ do |link| |
37 | | - page.should have_xpath('//a', :text => link) |
| 37 | + page.should have_xpath('//a', text: link) |
38 | 38 | end |
39 | 39 |
|
40 | 40 | Then /^an "([^"]*)" exception should be raised when I follow "([^"]*)"$/ do |error, link| |
|
61 | 61 | end |
62 | 62 |
|
63 | 63 | Then /^I should see a fieldset titled "([^"]*)"$/ do |title| |
64 | | - page.should have_css('fieldset legend', :text => title) |
| 64 | + page.should have_css('fieldset legend', text: title) |
65 | 65 | end |
66 | 66 |
|
67 | 67 | Then /^the "([^"]*)" field should contain the option "([^"]*)"$/ do |field, option| |
68 | 68 | field = find_field(field) |
69 | | - field.should have_css("option", :text => option) |
| 69 | + field.should have_css("option", text: option) |
70 | 70 | end |
71 | 71 |
|
72 | 72 | Then /^I should see the content "([^"]*)"$/ do |content| |
73 | | - page.should have_css("#active_admin_content", :text => content) |
| 73 | + page.should have_css("#active_admin_content", text: content) |
74 | 74 | end |
75 | 75 |
|
76 | 76 | Then /^I should see a validation error "([^"]*)"$/ do |error_message| |
77 | | - page.should have_css(".inline-errors", :text => error_message) |
| 77 | + page.should have_css(".inline-errors", text: error_message) |
78 | 78 | end |
79 | 79 |
|
80 | 80 | Then /^I should see a table with id "([^"]*)"$/ do |dom_id| |
81 | | - page.should have_css('table', :id => dom_id) |
| 81 | + page.should have_css('table', id: dom_id) |
82 | 82 | end |
0 commit comments