require 'rubygems' require 'spec' dir = File.dirname(__FILE__) require File.expand_path("#{dir}/spec_helper") require File.expand_path("#{dir}/../lib/fjson") describe "A float number" do it "should convert to json" do (3.14).to_json.should == "3.14" end it "to_json should accept any number of arguments" do (3.14).to_json(1, 2) end end