diff options
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/user_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb index b451c1e6b..3f824f9fe 100644 --- a/test/unit/user_test.rb +++ b/test/unit/user_test.rb @@ -408,6 +408,10 @@ class UserTest < ActiveSupport::TestCase assert @jsmith.allowed_to?(:edit_issues, @jsmith.projects) #Manager or Developer everywhere assert ! @jsmith.allowed_to?(:delete_issue_watchers, @jsmith.projects) #Dev cannot delete_issue_watchers end + + should "behave correctly with arrays of 1 project" do + assert ! User.anonymous.allowed_to?(:delete_issues, [Project.first]) + end end context "with options[:global]" do |