Sha256: 0c31d9efb144c6094f13c4d18e48f7e3dbd2b4172f9ded7a3fbfea882e91fd2d

Contents?: true

Size: 722 Bytes

Versions: 5

Compression:

Stored size: 722 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.cp_r(lib_version, TESTDIR)
  end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alexandria-book-collection-manager-0.7.10 spec/alexandria/console_spec.rb
alexandria-book-collection-manager-0.7.9 spec/alexandria/console_spec.rb
alexandria-book-collection-manager-0.7.8 spec/alexandria/console_spec.rb
alexandria-book-collection-manager-0.7.7 spec/alexandria/console_spec.rb
alexandria-book-collection-manager-0.7.6 spec/alexandria/console_spec.rb