Fix remaining offenses
This commit is contained in:
parent
ad85928752
commit
c4e45d89d4
2 changed files with 5 additions and 4 deletions
|
@ -150,8 +150,8 @@ describe Environment, models: true do
|
||||||
let!(:close_action) { create(:ci_build, :manual, pipeline: build.pipeline, name: 'close_app') }
|
let!(:close_action) { create(:ci_build, :manual, pipeline: build.pipeline, name: 'close_app') }
|
||||||
|
|
||||||
it 'returns the same action' do
|
it 'returns the same action' do
|
||||||
is_expected.to eq(close_action)
|
expect(subject).to eq(close_action)
|
||||||
is_expected.to include(user: user)
|
expect(subject.user).to eq(user)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -160,7 +160,8 @@ describe Environment, models: true do
|
||||||
|
|
||||||
it 'returns a new action of the same type' do
|
it 'returns a new action of the same type' do
|
||||||
is_expected.to be_persisted
|
is_expected.to be_persisted
|
||||||
is_expected.to include(name: close_action.name, user: user)
|
expect(subject.name).to eq(close_action.name)
|
||||||
|
expect(subject.user).to eq(user)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue