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
It looks like this one has been sufficiently covered, but see Capybara's docs for an official answer. You can select by name, id, or label text.