Sha256: ed968cd3b8d33125b4b3b212fad922b73f62dc9bef1819335a19e96610824c83

Contents?: true

Size: 1.29 KB

Versions: 1

Compression:

Stored size: 1.29 KB

Contents

# Copyright (C) 2007 Joseph Method
# Modifications Copyright (C) 2011 Matijs van Zuijlen
#
# Alexandria is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# Alexandria is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public
# License along with Alexandria; see the file COPYING.  If not,
# write to the Free Software Foundation, Inc., 51 Franklin Street,
# Fifth Floor, Boston, MA 02110-1301 USA.

require File.expand_path('test_helper.rb', File.dirname(__FILE__))

describe Alexandria::Book do
  it 'should be a thing' do
    an_artist_of_the_floating_world
  end

  it 'should establish equality only with books with the same identity' do
    book = an_artist_of_the_floating_world
    same_book = an_artist_of_the_floating_world
    same_book.must_equal book
    different_book = an_artist_of_the_floating_world
    different_book.isbn = '9780571147999'
    different_book.wont_equal book
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alexandria-book-collection-manager-0.6.9.pre1 test/book_test.rb