Skip to content
Browse files

Merge pull request #125 from hannesg/yajl_script_test_fix

Yajl test now accept hashes even if the order is different.
  • Loading branch information...
2 parents 01e3a7b + 58e55a2 commit 77dfce203c113c6a4cfc51a9703e76cb53f871b2 @rtomayko committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/tilt_yajltemplate_test.rb
View
3 test/tilt_yajltemplate_test.rb
@@ -73,7 +73,8 @@ class YajlTemplateTest < Test::Unit::TestCase
json[:integer] = four
nil
} }
- assert_equal '{"string":"hello","integer":4}', template.render
+ result = template.render
+ assert( (result == '{"string":"hello","integer":4}') || (result == '{"integer":4,"string":"hello"}') )
end
test "option callback" do

0 comments on commit 77dfce2

Please sign in to comment.
Something went wrong with that request. Please try again.