summaryrefslogtreecommitdiffstats
path: root/test/unit/enumeration_test.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2009-10-21 22:34:22 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2009-10-21 22:34:22 +0000
commitac4937a76755de2f9b6a83f6160efa0fde2d03aa (patch)
tree611bf32cf6c377b65e3362583f4846e1f6a69210 /test/unit/enumeration_test.rb
parent29ab7b4108cb45bc4efb44253419fa2e658ac3e9 (diff)
downloadredmine-ac4937a76755de2f9b6a83f6160efa0fde2d03aa.tar.gz
redmine-ac4937a76755de2f9b6a83f6160efa0fde2d03aa.zip
Enumerations can now have custom fields defined on them. #4077
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2945 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/enumeration_test.rb')
-rw-r--r--test/unit/enumeration_test.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/unit/enumeration_test.rb b/test/unit/enumeration_test.rb
index 4dc6e15c3..663077352 100644
--- a/test/unit/enumeration_test.rb
+++ b/test/unit/enumeration_test.rb
@@ -18,7 +18,7 @@
require File.dirname(__FILE__) + '/../test_helper'
class EnumerationTest < ActiveSupport::TestCase
- fixtures :enumerations, :issues
+ fixtures :enumerations, :issues, :custom_fields, :custom_values
def setup
end
@@ -81,4 +81,9 @@ class EnumerationTest < ActiveSupport::TestCase
assert_nil Issue.find(:first, :conditions => {:priority_id => 4})
assert_equal 5, Enumeration.find(6).objects_count
end
+
+ def test_should_be_customizable
+ assert Enumeration.included_modules.include?(Redmine::Acts::Customizable::InstanceMethods)
+ end
+
end