diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-08-13 14:23:33 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-08-13 14:23:33 +0000 |
commit | 8fb1a7e3ccc7b501704a7873b328c1b976554cab (patch) | |
tree | fd69eb36ab8ecc9f31b32ec68ce77fe054b6a2dd /test/unit/project_test.rb | |
parent | 91c875437d5dcca7355c9ed405a4464734cc6d17 (diff) | |
download | redmine-8fb1a7e3ccc7b501704a7873b328c1b976554cab.tar.gz redmine-8fb1a7e3ccc7b501704a7873b328c1b976554cab.zip |
Fixed that open scope on Project#issues raises an error (#11545).
Patch by Petr Pospisil.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10199 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/project_test.rb')
-rw-r--r-- | test/unit/project_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb index 64a2631ea..3abfbe327 100644 --- a/test/unit/project_test.rb +++ b/test/unit/project_test.rb @@ -132,6 +132,10 @@ class ProjectTest < ActiveSupport::TestCase end end + def test_open_scope_on_issues_association + assert_kind_of Issue, Project.find(1).issues.open.first + end + def test_archive user = @ecookbook.members.first.user @ecookbook.archive |