Sha256: 474fe8cc1104c2a0cf8313a22c193ffbc08aab2d304399feb33c013ce927ac3f
Contents?: true
Size: 356 Bytes
Versions: 1
Compression:
Stored size: 356 Bytes
Contents
require 'rubygems' require 'spec' dir = File.dirname(__FILE__) require File.expand_path("#{dir}/spec_helper") require File.expand_path("#{dir}/../lib/fjson") context "A nil object" do specify "should convert to json" do nil.to_json.should_eql "null" end specify "to_json should accept any number of arguments" do nil.to_json(1, 2) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fjson-0.1.1 | spec/nil_class_spec.rb |