Sha256: 90625b7f1db0063a57269bc999c856efa7c68a4b8b92d7b1f7d0b9e8d1a317f8
Contents?: true
Size: 343 Bytes
Versions: 15
Compression:
Stored size: 343 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' class Drink include CouchPotato::Persistence property :alcohol end describe "json module" do it "should inject JSON.create_id into hash representation of a persistence object" do sake = Drink.new(:alcohol => "18%") sake.to_hash[JSON.create_id].should eql("Drink") end end
Version data entries
15 entries across 15 versions & 1 rubygems