Commit 589fd93d authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix Rubocop offenses in serializer entities

parent 8e603b62
...@@ -7,7 +7,8 @@ class StageEntity < Grape::Entity ...@@ -7,7 +7,8 @@ class StageEntity < Grape::Entity
"#{stage.name}: #{detailed_status.label}" "#{stage.name}: #{detailed_status.label}"
end end
expose :detailed_status, as: :status, expose :detailed_status,
as: :status,
with: StatusEntity with: StatusEntity
expose :path do |stage| expose :path do |stage|
......
...@@ -15,7 +15,7 @@ describe RequestAwareEntity do ...@@ -15,7 +15,7 @@ describe RequestAwareEntity do
it 'fetches request from options' do it 'fetches request from options' do
expect(subject).to receive(:options) expect(subject).to receive(:options)
.and_return({request: 'some value'}) .and_return({ request: 'some value' })
expect(subject.request).to eq 'some value' expect(subject.request).to eq 'some value'
end end
......
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