Permalink
Browse files

stop referring to the JSON constant

  • Loading branch information...
1 parent 5ab8df8 commit 3860d60dc5be91b85b70a0729cbc332bef4017e0 @jamesgolick committed Jul 1, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 spec/integration/basic_object_lifecycle_spec.rb
@@ -1,4 +1,5 @@
require File.expand_path("../../spec_helper", __FILE__)
+require 'rufus-json'
describe "Creating and retrieving an object" do
before do
@@ -39,7 +40,7 @@
it "doesn't serialize id, created_at, or updated_at in the attributes column" do
result = $db.from("users").first(:id => @user.id)
- attrs = JSON.parse(result[:attributes])
+ attrs = Rufus::Json.decode(result[:attributes])
attrs.keys.should_not include("id")
attrs.keys.should_not include("created_at")
attrs.keys.should_not include("updated_at")

0 comments on commit 3860d60

Please sign in to comment.