Sha256: 4bc24eca7acf1d3f3721660cc6ddda234dbb1056ee545a8bcaf1ccdfc38bc544

Contents?: true

Size: 641 Bytes

Versions: 15

Compression:

Stored size: 641 Bytes

Contents

require 'spec_helper'
require 'generators/active_fedora/config/fedora/fedora_generator'

describe ActiveFedora::Config::FedoraGenerator do
  describe "#fcrepo_wrapper_config" do
    let(:generator) { described_class.new }
    let(:files_to_test) { [
      'config/fcrepo_wrapper_test.yml',
      '.fcrepo_wrapper'
    ]}

    before do
      generator.fcrepo_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

15 entries across 15 versions & 1 rubygems

Version Path
active-fedora-11.5.6 spec/integration/generators/fedora_generator_spec.rb
active-fedora-11.2.1 spec/integration/generators/fedora_generator_spec.rb
active-fedora-11.5.5 spec/integration/generators/fedora_generator_spec.rb
active-fedora-11.5.4 spec/integration/generators/fedora_generator_spec.rb
active-fedora-11.5.3 spec/integration/generators/fedora_generator_spec.rb
active-fedora-11.5.2 spec/integration/generators/fedora_generator_spec.rb
active-fedora-12.0.0 spec/integration/generators/fedora_generator_spec.rb
active-fedora-11.5.0 spec/integration/generators/fedora_generator_spec.rb
active-fedora-11.4.1 spec/integration/generators/fedora_generator_spec.rb
active-fedora-11.4.0 spec/integration/generators/fedora_generator_spec.rb
active-fedora-11.3.1 spec/integration/generators/fedora_generator_spec.rb
active-fedora-11.3.0 spec/integration/generators/fedora_generator_spec.rb
active-fedora-11.2.0 spec/integration/generators/fedora_generator_spec.rb
active-fedora-11.1.6 spec/integration/generators/fedora_generator_spec.rb
active-fedora-11.1.5 spec/integration/generators/fedora_generator_spec.rb