Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 6e99ba303e02ca68f9e470e0cbf58519924661a8 1 parent 08c760f
@jsgoecke jsgoecke authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  spec/tropo-webapi-ruby_spec.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.