Skip to content
Browse files

Fix capybara extension to work with capybara 0.3.8

  • Loading branch information...
1 parent 1fbcf54 commit e8eb4b23dcdcc679a59d7195a2620bf3bec10120 Paco Guzman committed with May 13, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/mundo_pepino/capybara/extensions.rb
View
4 lib/mundo_pepino/capybara/extensions.rb
@@ -41,9 +41,9 @@ def select_date(date_to_select, options={})
id_prefix ||= options[:id_prefix]
- select date.year, :from => "#{id_prefix}_#{DATE_TIME_SUFFIXES[:year]}"
+ select date.year.to_s, :from => "#{id_prefix}_#{DATE_TIME_SUFFIXES[:year]}"
select date.strftime('%B'), :from => "#{id_prefix}_#{DATE_TIME_SUFFIXES[:month]}"
- select date.day, :from => "#{id_prefix}_#{DATE_TIME_SUFFIXES[:day]}"
+ select date.day.to_s, :from => "#{id_prefix}_#{DATE_TIME_SUFFIXES[:day]}"
end
def select_time(time_to_select, options ={})

0 comments on commit e8eb4b2

Please sign in to comment.
Something went wrong with that request. Please try again.