From 19836cf2ea17b6fe2c322d5f0ef350df833b4522 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Mon, 30 Mar 2015 20:12:24 +0500 Subject: [PATCH] fix mistype --- spec/controllers/projects/collaborators_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/projects/collaborators_controller_spec.rb b/spec/controllers/projects/collaborators_controller_spec.rb index 951d0db59..3255758b8 100644 --- a/spec/controllers/projects/collaborators_controller_spec.rb +++ b/spec/controllers/projects/collaborators_controller_spec.rb @@ -71,7 +71,7 @@ shared_examples_for 'user with no rights for this project' do it 'should not be able to set reader role for any user' do put :update, {id: @collaborator.id}.merge(@update_params) - expect(@another_user.relations.exists? target_id: @project.id, target_type: 'Project', role: 'read').to be false + expect(@another_user.relations.exists? target_id: @project.id, target_type: 'Project', role: 'reader').to be false end end