spec/support/time_slot_helper.rb
# Capybara browser helpers, modifies browser state
Capybara browser helpers, modifies browser state
Capybara browser helpers modifies browser state
def create_timeslot(date)
    visit '/time_slots/new'
    within("#new_time_slot") do
      fill_in_date("time_slot_start_date", date)
      select "10 AM", :from => "time_slot_start_time_4i"
      select "5 PM", :from => "time_slot_end_time_4i"
    end
    click_button 'Create New'
  end
def create_timeslot ( date ) visit '/time_slots/new' within ( "#new_time_slot" ) do fill_in_date ( "time_slot_start_date" , date ) select "10 AM" , :from => "time_slot_start_time_4i" select "5 PM" , :from => "time_slot_end_time_4i" end click_button 'Create New' end
Capybara browser helpers, modifies browser state
Capybara browser helpers modifies browser state
date