Commit eafb03cf authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Remove unnecessary set_flash.now from controller specs

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 8f0eef8b
...@@ -806,7 +806,7 @@ describe Projects::IssuesController do ...@@ -806,7 +806,7 @@ describe Projects::IssuesController do
delete :destroy, namespace_id: project.namespace, project_id: project, id: issue.iid delete :destroy, namespace_id: project.namespace, project_id: project, id: issue.iid
expect(response).to have_http_status(302) expect(response).to have_http_status(302)
expect(controller).to set_flash[:notice].to(/The issue was successfully deleted\./).now expect(controller).to set_flash[:notice].to(/The issue was successfully deleted\./)
end end
it 'delegates the update of the todos count cache to TodoService' do it 'delegates the update of the todos count cache to TodoService' do
......
...@@ -439,7 +439,7 @@ describe Projects::MergeRequestsController do ...@@ -439,7 +439,7 @@ describe Projects::MergeRequestsController do
delete :destroy, namespace_id: project.namespace, project_id: project, id: merge_request.iid delete :destroy, namespace_id: project.namespace, project_id: project, id: merge_request.iid
expect(response).to have_http_status(302) expect(response).to have_http_status(302)
expect(controller).to set_flash[:notice].to(/The merge request was successfully deleted\./).now expect(controller).to set_flash[:notice].to(/The merge request was successfully deleted\./)
end end
it 'delegates the update of the todos count cache to TodoService' do it 'delegates the update of the todos count cache to TodoService' do
......
...@@ -23,7 +23,7 @@ describe SentNotificationsController, type: :controller do ...@@ -23,7 +23,7 @@ describe SentNotificationsController, type: :controller do
end end
it 'sets the flash message' do it 'sets the flash message' do
expect(controller).to set_flash[:notice].to(/unsubscribed/).now expect(controller).to set_flash[:notice].to(/unsubscribed/)
end end
it 'redirects to the login page' do it 'redirects to the login page' do
...@@ -83,7 +83,7 @@ describe SentNotificationsController, type: :controller do ...@@ -83,7 +83,7 @@ describe SentNotificationsController, type: :controller do
end end
it 'sets the flash message' do it 'sets the flash message' do
expect(controller).to set_flash[:notice].to(/unsubscribed/).now expect(controller).to set_flash[:notice].to(/unsubscribed/)
end end
it 'redirects to the issue page' do it 'redirects to the issue page' do
...@@ -109,7 +109,7 @@ describe SentNotificationsController, type: :controller do ...@@ -109,7 +109,7 @@ describe SentNotificationsController, type: :controller do
end end
it 'sets the flash message' do it 'sets the flash message' do
expect(controller).to set_flash[:notice].to(/unsubscribed/).now expect(controller).to set_flash[:notice].to(/unsubscribed/)
end end
it 'redirects to the merge request page' do it 'redirects to the merge request page' do
......
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