Sha256: 0e1fe04c835338fc8101f4a8341d92af35326e72a6afc5d3ca21283c22f5d1ed

Contents?: true

Size: 362 Bytes

Versions: 8

Compression:

Stored size: 362 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 string" do
  specify "should convert to json" do
    "test".to_json.should_equal '"test"'
  end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fjson-0.0.1 spec/string_spec.rb
fjson-0.0.2 spec/string_spec.rb
fjson-0.0.3 spec/string_spec.rb
fjson-0.0.4 spec/string_spec.rb
fjson-0.0.5 spec/string_spec.rb
fjson-0.0.6 spec/string_spec.rb
fjson-0.0.7 spec/string_spec.rb
fjson-0.0.8 spec/string_spec.rb