Sha256: 6e3e017bcb6dd8a0a70a2184f6827ac1b1122e3333e617fe5ab8dd7fe1d1d102
Contents?: true
Size: 534 Bytes
Versions: 26
Compression:
Stored size: 534 Bytes
Contents
require 'spec_helper' class Predicate describe Predicate, "hash and ==" do subject{ left == right } after do left.hash.should eq(right.hash) if subject end describe "on equal predicates" do let(:left) { Predicate.coerce(:x => 2) } let(:right){ Predicate.coerce(:x => 2) } it{ should be(true) } end describe "on non equal predicates" do let(:left) { Predicate.coerce(:x => 2) } let(:right){ Predicate.coerce(:x => 3) } it{ should be(false) } end end end
Version data entries
26 entries across 26 versions & 1 rubygems