From 6be22dbbe3b1f7bc8c396a98a83f5c5b51a4bbca Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Tue, 1 Mar 2016 14:42:52 +0100 Subject: Fix specs for deprecated CI build status badge --- spec/controllers/ci/projects_controller_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'spec/controllers/ci') diff --git a/spec/controllers/ci/projects_controller_spec.rb b/spec/controllers/ci/projects_controller_spec.rb index e048c5a51ed..569ed7c0f6b 100644 --- a/spec/controllers/ci/projects_controller_spec.rb +++ b/spec/controllers/ci/projects_controller_spec.rb @@ -9,7 +9,7 @@ describe Ci::ProjectsController do # Specs for *deprecated* CI badge # describe '#badge' do - context 'user not signed in' + context 'user not signed in' do before { get(:badge, id: ci_id) } context 'project has no ci_id reference' do @@ -35,6 +35,7 @@ describe Ci::ProjectsController do expect(response.status).to eq 302 end end + end context 'user signed in' do let(:user) { create(:user) } -- cgit v1.2.1