Refactor ci_admin_event and fix features/ci/events_spec.rb

This commit is contained in:
Kamil Trzcinski 2015-09-15 20:56:20 +02:00
parent 6d0980b011
commit a598bd91f9
3 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -1,7 +1,7 @@
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

View file

@ -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)