Sha256: 04035e638b9e13e23a1e7553bb0e94823fe6d691f6868293bd91e9d5d573e025

Contents?: true

Size: 558 Bytes

Versions: 9

Compression:

Stored size: 558 Bytes

Contents

require 'rails_helper'

feature 'Recent Changes' do
  let(:event_title) { 'The Newest Event' }

  background do
    create :event, title: event_title, start_time: Time.zone.now
  end

  scenario 'A user browses recent changes' do
    visit '/changes'

    expect(page).to have_content 'CREATE'
    expect(page).to have_content event_title
  end

  scenario 'A user fetches the recent changes feed' do
    visit '/changes'
    click_on 'Changes feed'

    expect(page.body).to have_content 'CREATE'
    expect(page.body).to have_content event_title
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
grokus-1.0.0.9 spec/features/recent_changes_spec.rb
grokus-1.0.0.8 spec/features/recent_changes_spec.rb
grokus-1.0.0.7 spec/features/recent_changes_spec.rb
grokus-1.0.0.6 spec/features/recent_changes_spec.rb
grokus-1.0.0.5 spec/features/recent_changes_spec.rb
grokus-1.0.0.3 spec/features/recent_changes_spec.rb
grokus-1.0.0.2 spec/features/recent_changes_spec.rb
grokus-1.0.0.1 spec/features/recent_changes_spec.rb
calagator-1.0.0.rc3 spec/features/recent_changes_spec.rb