I\'m writing a spec for a controller in Rails 3 project using RSpec and Capybara, and I want to select current date from a select box. I tried:
select Date.t
Thanks to Dylan for pointing it out, but in case anyone is looking for the cucumber version, you can use this:
select_date("Date of birth", :with => "1/1/2011")
For more information, see select_date.