Remove # from controller actions specs

parent a8cc69a2
......@@ -14,7 +14,7 @@ describe Projects::Boards::IssuesController do
project.team << [user, :master]
end
describe 'GET #index' do
describe 'GET index' do
context 'with valid list id' do
it 'returns issues that have the list label applied' do
johndoe = create(:user, avatar: fixture_file_upload(File.join(Rails.root, 'spec/fixtures/dk.png')))
......@@ -59,7 +59,7 @@ describe Projects::Boards::IssuesController do
end
end
describe 'PATCH #update' do
describe 'PATCH update' do
let(:issue) { create(:labeled_issue, project: project, labels: [planning]) }
context 'with valid params' do
......
......@@ -11,7 +11,7 @@ describe Projects::Boards::ListsController do
project.team << [guest, :guest]
end
describe 'GET #index' do
describe 'GET index' do
it 'returns a successful 200 response' do
read_board_list user: user
......@@ -51,7 +51,7 @@ describe Projects::Boards::ListsController do
end
end
describe 'POST #create' do
describe 'POST create' do
let(:label) { create(:label, project: project, name: 'Development') }
context 'with valid params' do
......@@ -99,7 +99,7 @@ describe Projects::Boards::ListsController do
end
end
describe 'PATCH #update' do
describe 'PATCH update' do
let!(:planning) { create(:list, board: board, position: 0) }
let!(:development) { create(:list, board: board, position: 1) }
......@@ -152,7 +152,7 @@ describe Projects::Boards::ListsController do
end
end
describe 'DELETE #destroy' do
describe 'DELETE destroy' do
let!(:planning) { create(:list, board: board, position: 0) }
context 'with valid list id' do
......@@ -193,7 +193,7 @@ describe Projects::Boards::ListsController do
end
end
describe 'POST #generate' do
describe 'POST generate' do
context 'when board lists is empty' do
it 'returns a successful 200 response' do
generate_default_board_lists user: user
......
......@@ -9,7 +9,7 @@ describe Projects::BoardsController do
sign_in(user)
end
describe 'GET #show' do
describe 'GET show' do
it 'creates a new board when project does not have one' do
expect { read_board }.to change(Board, :count).by(1)
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