日時選択の動作をテストするキュウリ テストを作成する必要があります。
これが私の文です:「start_time」として「2012-4-30 15:00」を選択した場合
ここに私のHTMLビューがあります:
= form_tag time_off_requests_path do
= label :time_off_request, :start_time, 'Start Time'
= datetime_select :time_off_request, :start_time , :start_year => Time.current.year, :use_short_month => true
= submit_tag 'Save Changes'
/^I select "([^"] )" as the "([^"] )"$/ do |date_time, label|のようなものを試しました select(date_time, from => label) end しかし、うまくいきません。get は ID を見つけることができません。「選択ボックス」の名前は本当に助けが必要です!