Sha256: 5a94e4487c6e5facdbaf1cf53f4647e8a7baff4cd5a3013abb1e29381afa9208
Contents?: true
Size: 893 Bytes
Versions: 1
Compression:
Stored size: 893 Bytes
Contents
# frozen_string_literal: true # This file is part of Alexandria. # # See the file README.md for authorship and licensing information. $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 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 test_store = Alexandria::LibraryStore.new(TESTDIR) Alexandria::LibraryCollection.instance.library_store = test_store RSpec.configure do |config| config.before do FileUtils.rm_rf(TESTDIR) end config.after do FileUtils.rm_rf(TESTDIR) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alexandria-book-collection-manager-0.7.3 | spec/spec_helper.rb |