diff options
author | Felipe Artur <felipefac@gmail.com> | 2016-04-04 17:04:35 -0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2016-04-05 11:53:39 -0300 |
commit | 32c7e42b612bdda43eeef55d8c8afdc9eeb33785 (patch) | |
tree | 249f53f853e45ad2ed529e5fd53970b9ba5b8390 /spec/controllers/groups | |
parent | 5d428030451b1fa2bac89f798c40d2f91ac65bac (diff) | |
download | gitlab-ce-32c7e42b612bdda43eeef55d8c8afdc9eeb33785.tar.gz |
Improve code
Diffstat (limited to 'spec/controllers/groups')
-rw-r--r-- | spec/controllers/groups/milestones_controller_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/groups/milestones_controller_spec.rb b/spec/controllers/groups/milestones_controller_spec.rb index f258d6fa0c7..9c7b5c74b8e 100644 --- a/spec/controllers/groups/milestones_controller_spec.rb +++ b/spec/controllers/groups/milestones_controller_spec.rb @@ -27,7 +27,7 @@ describe Groups::MilestonesController do it "redirects to new when there are no project ids" do post :create, group_id: group.id, milestone: { title: title, project_ids: [""] } expect(response).to render_template :new - expect(flash[:alert]).to_not be_nil + expect(assigns(:milestone).errors).to_not be_nil end end end |