Sha256: 7f13e6b2e03c7480931cae42707deb6ab561691dafd67f9f4d18607d8c53ac0e

Contents?: true

Size: 443 Bytes

Versions: 1

Compression:

Stored size: 443 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 object" do
  specify "should convert its string representation to json" do
    obj = Object.new
    obj_str = obj.to_s
    obj.to_json.should_eql '"' + obj_str + '"'
  end

  specify "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.1 spec/object_spec.rb