|
4 | 4 | require 'webrat' if !defined?(Webrat) # Because some people have it installed as a Gem
|
5 | 5 |
|
6 | 6 | When /^I press "(.*)"$/ do |button|
|
7 |
| - clicks_button(button) |
| 7 | + click_button(button) |
8 | 8 | end
|
9 | 9 |
|
10 | 10 | When /^I follow "(.*)"$/ do |link|
|
11 |
| - clicks_link(link) |
| 11 | + click_link(link) |
12 | 12 | end
|
13 | 13 |
|
14 | 14 | When /^I fill in "(.*)" with "(.*)"$/ do |field, value|
|
15 |
| - fills_in(field, :with => value) |
| 15 | + fill_in(field, :with => value) |
16 | 16 | end
|
17 | 17 |
|
18 | 18 | When /^I select "(.*)" from "(.*)"$/ do |value, field|
|
19 |
| - selects(value, :from => field) |
| 19 | + select(value, :from => field) |
20 | 20 | end
|
21 | 21 |
|
22 | 22 | # Use this step in conjunction with Rail's datetime_select helper. For example:
|
23 | 23 | # When I select "December 25, 2008 10:00" as the date and time
|
24 | 24 | When /^I select "(.*)" as the date and time$/ do |time|
|
25 |
| - selects_datetime(time) |
| 25 | + select_datetime(time) |
26 | 26 | end
|
27 | 27 |
|
28 | 28 | # Use this step when using multiple datetime_select helpers on a page or
|
|
35 | 35 | # When I select "November 23, 2004 11:20" as the "Preferred" data and time
|
36 | 36 | # And I select "November 25, 2004 10:30" as the "Alternative" data and time
|
37 | 37 | When /^I select "(.*)" as the "(.*)" date and time$/ do |datetime, datetime_label|
|
38 |
| - selects_datetime(datetime, :from => datetime_label) |
| 38 | + select_datetime(datetime, :from => datetime_label) |
39 | 39 | end
|
40 | 40 |
|
41 | 41 | # Use this step in conjuction with Rail's time_select helper. For example:
|
42 | 42 | # When I select "2:20PM" as the time
|
43 | 43 | # Note: Rail's default time helper provides 24-hour time-- not 12 hour time. Webrat
|
44 | 44 | # will convert the 2:20PM to 14:20 and then select it.
|
45 | 45 | When /^I select "(.*)" as the time$/ do |time|
|
46 |
| - selects_time(time) |
| 46 | + select_time(time) |
47 | 47 | end
|
48 | 48 |
|
49 | 49 | # Use this step when using multiple time_select helpers on a page or you want to
|
50 | 50 | # specify the name of the time on the form. For example:
|
51 | 51 | # When I select "7:30AM" as the "Gym" time
|
52 | 52 | When /^I select "(.*)" as the "(.*)" time$/ do |time, time_label|
|
53 |
| - selects_time(time, :from => time_label) |
| 53 | + select_time(time, :from => time_label) |
54 | 54 | end
|
55 | 55 |
|
56 | 56 | # Use this step in conjuction with Rail's date_select helper. For example:
|
57 | 57 | # When I select "February 20, 1981" as the date
|
58 | 58 | When /^I select "(.*)" as the date$/ do |date|
|
59 |
| - selects_date(date) |
| 59 | + select_date(date) |
60 | 60 | end
|
61 | 61 |
|
62 | 62 | # Use this step when using multiple date_select helpers on one page or
|
63 | 63 | # you want to specify the name of the date on the form. For example:
|
64 | 64 | # When I select "April 26, 1982" as the "Date of Birth" date
|
65 | 65 | When /^I select "(.*)" as the "(.*)" date$/ do |date, date_label|
|
66 |
| - selects_date(date, :from => date_label) |
| 66 | + select_date(date, :from => date_label) |
67 | 67 | end
|
68 | 68 |
|
69 | 69 | When /^I check "(.*)"$/ do |field|
|
70 |
| - checks(field) |
| 70 | + check(field) |
71 | 71 | end
|
72 | 72 |
|
73 | 73 | When /^I uncheck "(.*)"$/ do |field|
|
74 |
| - unchecks(field) |
| 74 | + uncheck(field) |
75 | 75 | end
|
76 | 76 |
|
77 | 77 | When /^I choose "(.*)"$/ do |field|
|
78 |
| - chooses(field) |
| 78 | + choose(field) |
79 | 79 | end
|
80 | 80 |
|
81 | 81 | When /^I attach the file at "(.*)" to "(.*)" $/ do |path, field|
|
82 |
| - attaches_file(field, path) |
| 82 | + attach_file(field, path) |
83 | 83 | end
|
84 | 84 |
|
85 | 85 | Then /^I should see "(.*)"$/ do |text|
|
|
0 commit comments