BigW Consortium Gitlab

events_spec.rb 386 Bytes
Newer Older
1 2 3
require 'spec_helper'

describe "Admin Events" do
4
  let(:event) { FactoryGirl.create :ci_admin_event }
5 6
  
  before do
Valery Sizov committed
7
    skip_ci_admin_auth
8 9 10 11 12 13
    login_as :user
  end

  describe "GET /admin/events" do
    before do
      event
Valery Sizov committed
14
      visit ci_admin_events_path
15 16
    end

17 18
    it { expect(page).to have_content "Events" }
    it { expect(page).to have_content event.description }
19 20
  end
end