require 'rubygems' require 'spec' dir = File.dirname(__FILE__) require File.expand_path("#{dir}/spec_helper") require File.expand_path("#{dir}/../lib/fjson") context "An integer" do specify "should convert to json" do 5.to_json.should_equal "5" end specify "to_json should accept any number of arguments" do 5.to_json(1, 2) end end