Sha256: 90d8efba7881f46ee70d8dcfd6625765f1ecac043e46ca54633892b8b76cfa7a

Contents?: true

Size: 626 Bytes

Versions: 14

Compression:

Stored size: 626 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'
    ]}

    before do
      generator.solr_wrapper_config
    end

    after do
      files_to_test.each { |file| File.delete(file) if File.exist?(file) }
    end

    it "creates config files" do
      files_to_test.each do |file|
        expect(File).to exist(file), "Expected #{file} to exist"
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
active-fedora-11.0.0.rc5 spec/integration/generators/solr_generator_spec.rb
active-fedora-11.0.0.rc4 spec/integration/generators/solr_generator_spec.rb
active-fedora-10.2.0 spec/integration/generators/solr_generator_spec.rb
active-fedora-11.0.0.rc3 spec/integration/generators/solr_generator_spec.rb
active-fedora-11.0.0.rc2 spec/integration/generators/solr_generator_spec.rb
active-fedora-11.0.0.rc1 spec/integration/generators/solr_generator_spec.rb
active-fedora-10.1.0 spec/integration/generators/solr_generator_spec.rb
active-fedora-10.1.0.rc1 spec/integration/generators/solr_generator_spec.rb
active-fedora-10.0.0 spec/integration/generators/solr_generator_spec.rb
active-fedora-10.0.0.beta4 spec/integration/generators/solr_generator_spec.rb
active-fedora-10.0.0.beta3 spec/integration/generators/solr_generator_spec.rb
active-fedora-10.0.0.beta2 spec/integration/generators/solr_generator_spec.rb
active-fedora-10.0.0.beta1 spec/integration/generators/solr_generator_spec.rb
active-fedora-9.13.0 spec/integration/generators/solr_generator_spec.rb