Permalink
Browse files

[FIX] fixed tests on 1.8.7

  • Loading branch information...
1 parent 082aae1 commit 76f81c032a2810c9c000049d0375cd3d3e1f080e @bagwanpankaj committed Jan 25, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 spec/humongous_spec.rb
View
@@ -33,8 +33,8 @@ def app
@connection.apply_saved_authentication
@database = @connection.db("humongous_test")
@collection = @database.create_collection("local")
- @collection.insert({name: "test", age: 12})
- @doc = @collection.find_one({name: "test"})
+ @collection.insert({:name => "test", :age => 12})
+ @doc = @collection.find_one({:name => "test"})
end
describe "Connection" do
@@ -116,7 +116,7 @@ def app
describe "update" do
before(:all) do
@doc["name"] = "test_changed"
- post "/database/humongous_test/collection/local/save", { doc: @doc }
+ post "/database/humongous_test/collection/local/save", { :doc => @doc }
@parsed_body = Crack::JSON.parse(last_response.body)
end
@@ -135,8 +135,8 @@ def app
describe "Collection Query" do
before(:all) do
- @doc = @collection.insert({name: "test", age: 12})
- post "/database/humongous_test/collection/local/page/1", { query: "{ \"name\": \"test\" }", fields: "", skip: 0, limit: 10, sort: "[]" }
+ @doc = @collection.insert({:name => "test", :age => 12})
+ post "/database/humongous_test/collection/local/page/1", { :query => "{ \"name\": \"test\" }", :fields => "", :skip => 0, :limit => 10, :sort => "[]" }
@parsed_body = Crack::JSON.parse(last_response.body)
end

0 comments on commit 76f81c0

Please sign in to comment.