Sha256: d3f64c74734cca124005dd82e7e5c9c728668dc70f567fd57094d5a3ad89f8fc
Contents?: true
Size: 994 Bytes
Versions: 2
Compression:
Stored size: 994 Bytes
Contents
# -*- coding: utf-8 -*- require "sixarm_ruby_blob_test" describe Blob do let(:blob){ Factory.build(:blob, name: FAB.name) } describe "equality" do before do @a = Blob.new @b = Blob.new end describe "#==(other)" do it "is true iff names are equal (using ==)" do @a.name = "foo" @b.name = "foo" (@a==@b).must_be_true end it "is false when names are inequal (using ==)" do @a.name = "foo" @b.name = "bar" (@a==@b).must_be_false end end describe "#eql?(other)" do before do @a = Blob.new @b = Blob.new end it "is true iff names are equal (using #eql?)" do @a.name = "foo" @b.name = "foo" (@a.eql?(@b)).must_be_true end it "is false when names are inequal (using #eql?)" do @a.name = "foo" @b.name = "bar" (@a.eql?(@b)).must_be_false end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sixarm_ruby_blob-2.0.0 | test/sixarm_ruby_blob_test/base_test.rb |
sixarm_ruby_blob-1.0.3 | test/sixarm_ruby_blob_test/base_test.rb |