diff --git a/test/engine_test.rb b/test/engine_test.rb
index <HASH>..<HASH> 100644
--- a/test/engine_test.rb
+++ b/test/engine_test.rb
@@ -158,8 +158,8 @@ context "Rabl::Engine" do
         }
         scope = Object.new
         scope.instance_variable_set :@user, User.new(:name => 'leo', :city => 'LA', :age => 12)
-        template.render(scope)
-      end.equals "{\"user\":{\"name\":\"leo\",\"city\":\"LA\",\"age\":12}}"
+        template.render(scope).split('').sort
+      end.equals "{\"user\":{\"name\":\"leo\",\"city\":\"LA\",\"age\":12}}".split('').sort
     end
   end
Correct compare hashes converted to strings using Ruby <I> (closes #<I>)