Sha256: 222959512f1dee4b7f9cf9a90eb84adae115f9300b2633a3d5a9bdacda2ec21d

Contents?: true

Size: 1.49 KB

Versions: 1

Compression:

Stored size: 1.49 KB

Contents

# Copyright (C) 2007 Joseph Method
# Copyright (C) 2014, 2016 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.

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '/../lib'))

require 'alexandria'

LIBDIR = File.expand_path(File.join(File.dirname(__FILE__), '/data/libraries'))
TESTDIR = File.join(LIBDIR, 'test')

# def useTestLibrary(version)
#  libVersion = File.join(LIBDIR, version)
#  FileUtils.cp_r(libVersion, TESTDIR)
# end

def an_artist_of_the_floating_world
  Alexandria::Book.new('An Artist of the Floating World',
                       'Kazuo Ishiguro',
                       '9780571147168',
                       'Faber and Faber', 1999,
                       'Paperback')
end

Alexandria::UI::Icons.init
Alexandria::UI.start_main_app

module Alexandria
  class Library
    DIR.replace TESTDIR
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alexandria-book-collection-manager-0.7.0 spec/spec_helper.rb