Sha256: 438acd198925171d53dad618ecda7bc6213af16a60c156bae4e83e1d909c050a
Contents?: true
Size: 841 Bytes
Versions: 11
Compression:
Stored size: 841 Bytes
Contents
require 'rails_helper' feature 'import events from a feed' do background do Timecop.travel('2010-01-01') stub_request(:get, 'http://even.ts/feed').to_return(body: read_sample('ical_multiple_calendars.ics')) end after do Timecop.return end scenario 'A user imports an events from a feed' do visit '/' click_on 'Import events' fill_in 'URL', with: 'http://even.ts/feed' click_on 'Import' expect(find(".flash")).to have_content %( Imported 3 entries: Coffee with Jason Coffee with Mike Coffee with Kim ) expect(page).to have_content 'Viewing 3 future events' expect(find(".event_table")).to have_content %( Thursday Apr 8 Coffee with Jason 7–8am Coffee with Mike 7–8am Coffee with Kim 7–8am ) end end
Version data entries
11 entries across 11 versions & 2 rubygems