Permalink
Browse files

Changed a test to eval on a Ruby hash rather than JSON strings.

  • Loading branch information...
1 parent 08c760f commit 6e99ba303e02ca68f9e470e0cbf58519924661a8 @jsgoecke jsgoecke committed Feb 16, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/tropo-webapi-ruby_spec.rb
@@ -212,7 +212,7 @@
it "should accept a valid email address when a 'record' action is called" do
response = Tropo::Generator.record({ :name => 'bar',
:url => 'foo@bar.com' })
- response.should == "{\"tropo\":[{\"record\":{\"url\":\"foo@bar.com\",\"name\":\"bar\"}}]}"
+ JSON.parse(response).should == JSON.parse("{\"tropo\":[{\"record\":{\"url\":\"foo@bar.com\",\"name\":\"bar\"}}]}")
end
# Redirect action tests

0 comments on commit 6e99ba3

Please sign in to comment.