##// END OF EJS Templates
2.6-stable: fix unit test on Ruby 1.8.7 (#19305)...
Toshi MARUYAMA -
r13737:e580d565eb55
parent child
Show More
@@ -118,8 +118,9 YAML
118 Setting.commit_update_keywords = {}
118 Setting.commit_update_keywords = {}
119 assert_equal 1, Setting.where(:name => 'commit_update_keywords').update_all(:value => yaml)
119 assert_equal 1, Setting.where(:name => 'commit_update_keywords').update_all(:value => yaml)
120 Setting.clear_cache
120 Setting.clear_cache
121
121 if "".respond_to?(:force_encoding)
122 assert_equal 'UTF-8', Setting.commit_update_keywords.first['keywords'].encoding.name
122 assert_equal 'UTF-8', Setting.commit_update_keywords.first['keywords'].encoding.name
123 end
123 ensure
124 ensure
124 Setting.where(:name => 'commit_update_keywords').delete_all
125 Setting.where(:name => 'commit_update_keywords').delete_all
125 Setting.clear_cache
126 Setting.clear_cache
General Comments 0
You need to be logged in to leave comments. Login now