Sha256: 5723c5b1561560d805c8361fdd1e2181e4bd1fd02db5f63b484a08b8c0b39777

Contents?: true

Size: 793 Bytes

Versions: 1

Compression:

Stored size: 793 Bytes

Contents

# frozen_string_literal: true

# This file is part of Alexandria.
#
# See the file README.md for authorship and licensing information.

require 'spec_helper'

RSpec.describe Alexandria do
  let(:lib_version) { File.join(LIBDIR, '0.6.2') }

  before do
    FileUtils.rm_rf(TESTDIR)
    FileUtils.cp_r(lib_version, TESTDIR)
  end

  describe '.list_books_on_console' do
    it 'returns a string containing a list of all books' do
      expect(Alexandria.list_books_on_console).to eq <<~LIST
        The Dispossessed, Ursula Le Guin
        Pattern Recognition, William Gibson
        Bonjour Tristesse, Francoise Sagan & Irene Ash
        An Artist of the Floating World, Kazuo Ishiguro
        Neverwhere, Neil Gaiman
      LIST
    end
  end

  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/alexandria/console_spec.rb