Skip to content
This repository
Browse code

stop referring to the JSON constant

  • Loading branch information...
commit 3860d60dc5be91b85b70a0729cbc332bef4017e0 1 parent 5ab8df8
James Golick authored
3  spec/integration/basic_object_lifecycle_spec.rb
... ...
@@ -1,4 +1,5 @@
1 1
 require File.expand_path("../../spec_helper", __FILE__)
  2
+require 'rufus-json'
2 3
 
3 4
 describe "Creating and retrieving an object" do
4 5
   before do
@@ -39,7 +40,7 @@
39 40
 
40 41
   it "doesn't serialize id, created_at, or updated_at in the attributes column" do
41 42
     result = $db.from("users").first(:id => @user.id)
42  
-    attrs  = JSON.parse(result[:attributes])
  43
+    attrs  = Rufus::Json.decode(result[:attributes])
43 44
     attrs.keys.should_not include("id")
44 45
     attrs.keys.should_not include("created_at")
45 46
     attrs.keys.should_not include("updated_at")

0 notes on commit 3860d60

Please sign in to comment.
Something went wrong with that request. Please try again.