Sha256: 5e34d9954e1d2cc516ecec53d796c20429426dd36c71e3a67c5da0dcda8beb13

Contents?: true

Size: 1.04 KB

Versions: 13

Compression:

Stored size: 1.04 KB

Contents

require 'rails_helper'

feature 'Venue Creation' do
  let(:new_venue) { build(:venue) }

  scenario 'User adds a new venue' do

    visit '/'
    click_on 'Venues'
    click_on 'Add a venue'


    fill_in 'Venue Name', with: new_venue.title
    fill_in 'Full Address', with: new_venue.address
    fill_in 'Web Link', with: new_venue.url
    fill_in 'Email', with: new_venue.email
    fill_in 'Telephone', with: new_venue.telephone
    check("venue_wifi")
    fill_in 'Description', with: new_venue.description
    fill_in 'Access notes', with: 'Just knock?'

    click_on 'Create Venue'

    expect(page).to have_content 'Venue was successfully saved.'
    expect(page).to have_content new_venue.title
    expect(page).to have_content new_venue.address
    expect(page).to have_content new_venue.url
    expect(page).to have_content new_venue.email
    expect(page).to have_content new_venue.telephone
    expect(page).to have_content new_venue.description
    expect(page).to have_content 'Just knock?'
    expect(page).to have_content 'Public WiFi'
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
calagator-1.0.0 spec/features/add_venue_spec.rb
grokus-1.0.0.9 spec/features/add_venue_spec.rb
grokus-1.0.0.8 spec/features/add_venue_spec.rb
grokus-1.0.0.7 spec/features/add_venue_spec.rb
grokus-1.0.0.6 spec/features/add_venue_spec.rb
grokus-1.0.0.5 spec/features/add_venue_spec.rb
grokus-1.0.0.3 spec/features/add_venue_spec.rb
grokus-1.0.0.2 spec/features/add_venue_spec.rb
grokus-1.0.0.1 spec/features/add_venue_spec.rb
calagator-1.0.0.rc3 spec/features/add_venue_spec.rb
calagator-1.0.0.rc2 spec/features/add_venue_spec.rb
calagator-1.0.0.rc1 spec/features/add_venue_spec.rb
calagator-0.0.1.pre1 spec/features/add_venue_spec.rb