Sha256: b01364e53b328c1fddd3bc270859d481dd46e24213f5b3b94c2e1f62260aa27f

Contents?: true

Size: 317 Bytes

Versions: 16

Compression:

Stored size: 317 Bytes

Contents

require "strong_json"

describe StrongJSON::Type::Literal do
  describe "=~" do
    let (:type) { StrongJSON::Type::Literal.new(3) }

    it "returns true if == holds" do
      expect(type =~ 3).to be_truthy
    end

    it "returns false if == doesn't hold" do
      expect(type =~ 4).to be_falsey
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
strong_json-2.1.2 spec/literal_spec.rb
strong_json-2.1.1 spec/literal_spec.rb
strong_json-2.1.0 spec/literal_spec.rb
strong_json-2.0.0 spec/literal_spec.rb
strong_json-1.1.0 spec/literal_spec.rb
strong_json-1.0.1 spec/literal_spec.rb
strong_json-1.0.0 spec/literal_spec.rb
strong_json-0.9.0 spec/literal_spec.rb
strong_json-0.8.0 spec/literal_spec.rb
strong_json-0.7.1 spec/literal_spec.rb
strong_json-0.7.0 spec/literal_spec.rb
strong_json-0.6.0 spec/literal_spec.rb
strong_json-0.5.0 spec/literal_spec.rb
strong_json-0.4.0 spec/literal_spec.rb
strong_json-0.3.0 spec/literal_spec.rb
strong_json-0.2.0 spec/literal_spec.rb