Sha256: 8afa6d012eaa7eff461bed0088a2cda3cffa18067caccaefb8ac0084c80add8e

Contents?: true

Size: 347 Bytes

Versions: 1

Compression:

Stored size: 347 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 "An integer" do
  specify "should convert to json" do
    5.to_json.should_eql "5"
  end

  specify "to_json should accept any number of arguments" do
    5.to_json(1, 2)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fjson-0.1.1 spec/integer_spec.rb