Sha256: 3eb776ef186c3799b46eff3525d8eb68f946a121aa1800300e303309388115c3

Contents?: true

Size: 628 Bytes

Versions: 1

Compression:

Stored size: 628 Bytes

Contents

require 'spec_helper'
 
module Amzwish
  describe Book do
    describe "equality" do
      let(:fixture){ Book.new("Title", "123") }
      describe "is based on asin number" do
        example "books with the same asin number are equal" do
          (fixture == Book.new("Title", "123")).should == true
        end
        example "books with different asin numbers are not equal" do
          (fixture == Book.new("Title", "321")).should == false 
        end
        example "books are not equal to things that are not books" do
          (fixture == "Title").should == false
        end
      end
    end
  end           
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
amzwish-0.0.0 spec/amzwish/book_spec.rb