Permalink
Browse files

Yajl test now accept hashes even if the order is different.

  • Loading branch information...
HannesG
HannesG committed Jan 8, 2012
1 parent e13a336 commit 58e55a2a30144a4470760879006cd5469930c356
Showing with 2 additions and 1 deletion.
  1. +2 −1 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 58e55a2

Please sign in to comment.