Sha256: ad43bf4519afb2542fbc9f3ae98d22ad4660efc45a67470d971555ddd34e7080

Contents?: true

Size: 188 Bytes

Versions: 20

Compression:

Stored size: 188 Bytes

Contents

describe "Boolean#to_json" do
  it "returns 'true' when true" do
    true.to_json.should == "true"
  end

  it "returns 'false' when false" do
    false.to_json.should == "false"
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
opal-0.4.2 spec/opal/boolean/to_json_spec.rb
opal-0.4.1 spec/opal/boolean/to_json_spec.rb
opal-0.4.0 spec/opal/boolean/to_json_spec.rb
opal-0.3.44 spec/opal/boolean/to_json_spec.rb
opal-0.3.43 spec/opal/boolean/to_json_spec.rb
opal-0.3.42 spec/core_ext/boolean/to_json_spec.rb
opal-0.3.41 spec/core/boolean/to_json_spec.rb
opal-0.3.40 spec/core/boolean/to_json_spec.rb
opal-0.3.39 spec/core/boolean/to_json_spec.rb
opal-0.3.38 spec/core/boolean/to_json_spec.rb
opal-0.3.37 spec/core/boolean/to_json_spec.rb
opal-0.3.36 spec/core/boolean/to_json_spec.rb
opal-0.3.35 spec/core/boolean/to_json_spec.rb
opal-0.3.34 spec/core/boolean/to_json_spec.rb
opal-0.3.33 spec/core/boolean/to_json_spec.rb
opal-0.3.32 spec/core/boolean/to_json_spec.rb
opal-0.3.31 spec/core/boolean/to_json_spec.rb
opal-0.3.30 spec/core/boolean/to_json_spec.rb
opal-0.3.29 spec/core/boolean/to_json_spec.rb
opal-0.3.28 spec/core/boolean/to_json_spec.rb