Sha256: 263f6f4116c391cb9dcdb889fb872f0d54b14e3c8e36b74cf208ba44327e521c

Contents?: true

Size: 522 Bytes

Versions: 6

Compression:

Stored size: 522 Bytes

Contents

require_relative '../../test_helper'
describe EbookRenamer do

  before :each do
    EbookRenamer.configure do |config|
      config.meta_binary = '/usr/bin/ebook-meta'
    end
  end

  after :each do
    EbookRenamer.reset
  end

  it "uses the updated configuration" do
    EbookRenamer.configuration.meta_binary.must_equal '/usr/bin/ebook-meta'
    config = EbookRenamer.configure do |config|
      config.meta_binary = "ebook-meta"
    end
    EbookRenamer.configuration.meta_binary.must_equal 'ebook-meta'
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ebook_renamer-0.0.6 test/lib/ebook_renamer/configuration_test.rb
ebook_renamer-0.0.5 test/lib/ebook_renamer/configuration_test.rb
ebook_renamer-0.0.4 test/lib/ebook_renamer/configuration_test.rb
ebook_renamer-0.0.3 test/lib/ebook_renamer/configuration_test.rb
ebook_renamer-0.0.2 test/lib/ebook_renamer/configuration_test.rb
ebook_renamer-0.0.1 test/lib/ebook_renamer/configuration_test.rb