Commit a598bd91 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Refactor ci_admin_event and fix features/ci/events_spec.rb

parent 6d0980b0
......@@ -17,7 +17,7 @@ FactoryGirl.define do
"updated project settings#{n}"
end
factory :admin_event do
factory :ci_admin_event do
is_admin true
end
end
......
require 'spec_helper'
describe "Admin Events" do
let(:event) { FactoryGirl.create :admin_event }
let(:event) { FactoryGirl.create :ci_admin_event }
before do
skip_ci_admin_auth
......
......@@ -2,13 +2,13 @@ require 'spec_helper'
describe "Events" do
let(:project) { FactoryGirl.create :ci_project }
let(:event) { FactoryGirl.create :admin_event, project: project }
let(:event) { FactoryGirl.create :ci_admin_event, project: project }
before do
login_as :user
end
describe "GET /project/:id/events" do
describe "GET /ci/project/:id/events" do
before do
event
visit ci_project_events_path(project)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment