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 ...@@ -17,7 +17,7 @@ FactoryGirl.define do
"updated project settings#{n}" "updated project settings#{n}"
end end
factory :admin_event do factory :ci_admin_event do
is_admin true is_admin true
end end
end end
......
require 'spec_helper' require 'spec_helper'
describe "Admin Events" do describe "Admin Events" do
let(:event) { FactoryGirl.create :admin_event } let(:event) { FactoryGirl.create :ci_admin_event }
before do before do
skip_ci_admin_auth skip_ci_admin_auth
......
...@@ -2,13 +2,13 @@ require 'spec_helper' ...@@ -2,13 +2,13 @@ require 'spec_helper'
describe "Events" do describe "Events" do
let(:project) { FactoryGirl.create :ci_project } 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 before do
login_as :user login_as :user
end end
describe "GET /project/:id/events" do describe "GET /ci/project/:id/events" do
before do before do
event event
visit ci_project_events_path(project) 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