diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-17 11:55:12 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-17 12:58:59 -0300 |
commit | 84afd6254a730b5711c3dc71dce0e467e8b8d2ec (patch) | |
tree | e49a14c4a9511fbd7aeabd3c8c8d4f02054c174c | |
parent | a8cc69a2816f3d241aa6d1471cb7e3c8d44c8624 (diff) | |
download | gitlab-ce-84afd6254a730b5711c3dc71dce0e467e8b8d2ec.tar.gz |
Remove # from controller actions specs
3 files changed, 8 insertions, 8 deletions
diff --git a/spec/controllers/projects/boards/issues_controller_spec.rb b/spec/controllers/projects/boards/issues_controller_spec.rb index 04df58bf4f6..2c6cdf086b8 100644 --- a/spec/controllers/projects/boards/issues_controller_spec.rb +++ b/spec/controllers/projects/boards/issues_controller_spec.rb @@ -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 diff --git a/spec/controllers/projects/boards/lists_controller_spec.rb b/spec/controllers/projects/boards/lists_controller_spec.rb index 92190b4b69e..a241e2f363f 100644 --- a/spec/controllers/projects/boards/lists_controller_spec.rb +++ b/spec/controllers/projects/boards/lists_controller_spec.rb @@ -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 diff --git a/spec/controllers/projects/boards_controller_spec.rb b/spec/controllers/projects/boards_controller_spec.rb index 2c0e3e5df31..9ed4d8a4218 100644 --- a/spec/controllers/projects/boards_controller_spec.rb +++ b/spec/controllers/projects/boards_controller_spec.rb @@ -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 |