Skip to content

Commit

Permalink
Merge pull request #125 from hannesg/yajl_script_test_fix
Browse files Browse the repository at this point in the history
Yajl test now accept hashes even if the order is different.
  • Loading branch information
rtomayko committed Jan 9, 2012
2 parents 01e3a7b + 58e55a2 commit 77dfce2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/tilt_yajltemplate_test.rb
Expand Up @@ -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
Expand Down

0 comments on commit 77dfce2

Please sign in to comment.