Fix rubocop offenses

parent a88ed81f
...@@ -240,7 +240,7 @@ describe Projects::Boards::ListsController do ...@@ -240,7 +240,7 @@ describe Projects::Boards::ListsController do
end end
end end
def generate_default_lists(user:, board: board) def generate_default_lists(user:, board:)
sign_in(user) sign_in(user)
post :generate, namespace_id: project.namespace.to_param, post :generate, namespace_id: project.namespace.to_param,
......
...@@ -70,21 +70,21 @@ describe Boards::Issues::ListService, services: true do ...@@ -70,21 +70,21 @@ describe Boards::Issues::ListService, services: true do
end end
end end
context 'with list that does not belongs to the board' do context 'with list that does not belongs to the board' do
it 'raises an error' do it 'raises an error' do
list = create(:list) list = create(:list)
service = described_class.new(project, user, board_id: board.id, id: list.id) service = described_class.new(project, user, board_id: board.id, id: list.id)
expect { service.execute }.to raise_error(ActiveRecord::RecordNotFound) expect { service.execute }.to raise_error(ActiveRecord::RecordNotFound)
end
end end
end
context 'with invalid list id' do context 'with invalid list id' do
it 'raises an error' do it 'raises an error' do
service = described_class.new(project, user, board_id: board.id, id: nil) service = described_class.new(project, user, board_id: board.id, id: nil)
expect { service.execute }.to raise_error(ActiveRecord::RecordNotFound) expect { service.execute }.to raise_error(ActiveRecord::RecordNotFound)
end
end end
end
end end
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