Merge pull request #970 from opf/fix/toppling_custom_value_test

Fix custom value test toppling due to non-unique test string
pull/975/head
ulferts 11 years ago
commit d14934b029
  1. 8
      test/unit/custom_value_test.rb

@ -122,13 +122,13 @@ class CustomValueTest < ActiveSupport::TestCase
def test_default_value def test_default_value
custom_field = FactoryGirl.create :issue_custom_field, custom_field = FactoryGirl.create :issue_custom_field,
:field_format => 'string', :field_format => 'string',
:default_value => "Default String" :default_value => "Some Default String"
field = CustomField.find_by_default_value('Default String') field = CustomField.find_by_default_value('Some Default String')
assert_not_nil field assert_equal field, custom_field
v = CustomValue.new(:custom_field => field) v = CustomValue.new(:custom_field => field)
assert_equal 'Default String', v.value assert_equal 'Some Default String', v.value
v = CustomValue.new(:custom_field => field, :value => 'Not empty') v = CustomValue.new(:custom_field => field, :value => 'Not empty')
assert_equal 'Not empty', v.value assert_equal 'Not empty', v.value

Loading…
Cancel
Save