diff options
Diffstat (limited to 'test/unit/custom_value_test.rb')
-rw-r--r-- | test/unit/custom_value_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/custom_value_test.rb b/test/unit/custom_value_test.rb index b22cc4225..14964ed09 100644 --- a/test/unit/custom_value_test.rb +++ b/test/unit/custom_value_test.rb @@ -20,6 +20,10 @@ require File.expand_path('../../test_helper', __FILE__) class CustomValueTest < ActiveSupport::TestCase fixtures :custom_fields, :custom_values, :users + def setup + User.current = nil + end + def test_new_without_value_should_set_default_value field = CustomField.generate!(:default_value => 'Default string') |