Skip to content

Commit

Permalink
[ci] Fix Rubocop offenses
Browse files Browse the repository at this point in the history
Our test suite wasn't working properly which caused that some offenses
slipped in with c0d15d8.
  • Loading branch information
bgeuken committed Jun 19, 2018
1 parent bbd005c commit c6642ca
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
let(:user) { create(:confirmed_user, login: 'tom') }
let(:project) { user.home_project }
let(:remote_project) { create(:remote_project) }

describe 'GET #show' do
context 'when the home project exist' do
before do
Expand All @@ -13,6 +14,7 @@

it { expect(response).to be_success }
end

context 'when the project doesnt exist' do
before do
login user
Expand All @@ -30,6 +32,7 @@
put :update, params: { project: remote_project.name,
comment: 'Updated by test', format: :xml }
end

it { expect(response).to be_forbidden }
end

Expand Down

0 comments on commit c6642ca

Please sign in to comment.