OSDN Git Service

Fixes duplicate custom_values fixture that caused failure with Postgresql.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 11 Dec 2010 10:47:00 +0000 (10:47 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 11 Dec 2010 10:47:00 +0000 (10:47 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4488 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/fixtures/custom_values.yml
test/functional/search_controller_test.rb

index 58288b3..d0dfe3a 100644 (file)
@@ -50,7 +50,7 @@ custom_values_008:
 custom_values_009: 
   customized_type: Issue
   custom_field_id: 2
-  customized_id: 3
+  customized_id: 7
   id: 9
   value: "this is a stringforcustomfield search"
 custom_values_010: 
index cb87114..ea29daf 100644 (file)
@@ -83,7 +83,7 @@ class SearchControllerTest < ActionController::TestCase
     results = assigns(:results)
     assert_not_nil results
     assert_equal 1, results.size
-    assert results.include?(Issue.find(3))
+    assert results.include?(Issue.find(7))
   end
   
   def test_search_all_words