Sha256: 7f05895d617009f777c402f31e2b090deb67268165a6b5107b72a993c06ca952

Contents?: true

Size: 598 Bytes

Versions: 13

Compression:

Stored size: 598 Bytes

Contents

require 'spec_helper'
require 'generators/active_fedora/config/solr/solr_generator'

describe ActiveFedora::Config::SolrGenerator do
  describe "#solr_wrapper_config" do
    let(:generator) { described_class.new }
    let(:files_to_test) {[
      'config/solr_wrapper_test.yml',
      '.solr_wrapper'
    ]}

    it "creates config files" do
      Dir.mktmpdir do |dir|
        Dir.chdir(dir) do
          generator.solr_wrapper_config
          files_to_test.each do |file|
            expect(File).to exist(file), "Expected #{file} to exist"
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
active-fedora-11.1.4 spec/integration/generators/solr_generator_spec.rb
active-fedora-11.1.3 spec/integration/generators/solr_generator_spec.rb
active-fedora-11.1.2 spec/integration/generators/solr_generator_spec.rb
active-fedora-11.1.1 spec/integration/generators/solr_generator_spec.rb
active-fedora-11.1.0 spec/integration/generators/solr_generator_spec.rb
active-fedora-10.3.0 spec/integration/generators/solr_generator_spec.rb
active-fedora-11.0.1 spec/integration/generators/solr_generator_spec.rb
active-fedora-11.0.0 spec/integration/generators/solr_generator_spec.rb
active-fedora-10.3.0.rc2 spec/integration/generators/solr_generator_spec.rb
active-fedora-11.0.0.rc7 spec/integration/generators/solr_generator_spec.rb
active-fedora-10.3.0.rc1 spec/integration/generators/solr_generator_spec.rb
active-fedora-11.0.0.rc6 spec/integration/generators/solr_generator_spec.rb
active-fedora-10.2.1 spec/integration/generators/solr_generator_spec.rb