Browse files

Fix JSON encoding error in specs

  • Loading branch information...
1 parent 472953d commit b74f0bbaad9e4a7c9298c020819364632fe88d2b @remiprev committed Jun 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/model/orm_spec.rb
View
2 spec/model/orm_spec.rb
@@ -70,7 +70,7 @@
builder.use Faraday::Request::UrlEncoded
builder.adapter :test do |stub|
stub.get("/users") { |env| [200, {}, { :data => [{ :id => 1, :name => "Tobias Fünke" }, { :id => 2, :name => "Lindsay Fünke" }], :metadata => { :total_pages => 10, :next_page => 2 }, :errors => ["Oh", "My", "God"] }.to_json] }
- stub.post("/users") { |env| [200, {}, { :data => { :name => "George Michael Bluth" }, :metadata => { :foo => :bar }, :errors => ["Yes", "Sir"] }.to_json] }
+ stub.post("/users") { |env| [200, {}, { :data => { :name => "George Michael Bluth" }, :metadata => { :foo => "bar" }, :errors => ["Yes", "Sir"] }.to_json] }
end
end

0 comments on commit b74f0bb

Please sign in to comment.