summaryrefslogtreecommitdiff
path: root/spec/features/admin/events_spec.rb
blob: 469c6ed102d25265dc07599ef20c46b98b35363f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'spec_helper'

describe "Admin Events" do
  let(:event) { FactoryGirl.create :admin_event }
  
  before do
    skip_admin_auth
    login_as :user
  end

  describe "GET /admin/events" do
    before do
      event
      visit admin_events_path
    end

    it { page.should have_content "Events" }
    it { page.should have_content event.description }
  end
end