Skip to content

Instantly share code, notes, and snippets.

@smcabrera
Last active October 27, 2015 20:54
Show Gist options
  • Select an option

  • Save smcabrera/bd74b2191dd7267d128e to your computer and use it in GitHub Desktop.

Select an option

Save smcabrera/bd74b2191dd7267d128e to your computer and use it in GitHub Desktop.
scenario 'views event space details with function date as a date' do
booking_request = build(
:booking_request,
event_space_comments: 'I need a lot of room'
)
lead = create(:lead,
booking_request: booking_request,
event_space_start_date: Date.new(2015, 27, 10)
)
user = create_user_for_lead(lead)
experience = experience_for(lead, user)
sign_in_as(user)
experience.view_event_space_details
expect(experience).to have_specific_event_space_start_date('Tue, 27 Oct 2015')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment