summaryrefslogtreecommitdiff
path: root/spec/features/ci/admin/events_spec.rb
blob: a7e75cc4f6b116eb5c8fc2477f1cf8a421051fb5 (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 :ci_admin_event }
  
  before do
    skip_ci_admin_auth
    login_as :user
  end

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

    it { expect(page).to have_content "Events" }
    it { expect(page).to have_content event.description }
  end
end