Sha256: 989cf7800a14815ed47847b96cb0ecfb4e78599cdc310d34f670eb7166be92ea
Contents?: true
Size: 433 Bytes
Versions: 1
Compression:
Stored size: 433 Bytes
Contents
require 'rubygems' require 'spec' dir = File.dirname(__FILE__) require File.expand_path("#{dir}/spec_helper") require File.expand_path("#{dir}/../lib/fjson") describe "An object" do it "should convert its string representation to json" do obj = Object.new obj_str = obj.to_s obj.to_json.should == '"' + obj_str + '"' end it "to_json should accept any number of arguments" do Object.new.to_json(1, 2) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fjson-0.1.2 | spec/object_spec.rb |