Sha256: d0dfe447bca079c716c7d5b14a62c32029e8265fdc0af1c60652e6d494755df2

Contents?: true

Size: 962 Bytes

Versions: 7

Compression:

Stored size: 962 Bytes

Contents

require 'spec_helper'

module Curate
  describe Configuration do
    its(:default_antivirus_instance) { should respond_to(:call)}
    its(:build_identifier) { should be_an_instance_of String }
    it 'allow for registration of curation_concerns' do
      expect {
        subject.register_curation_concern(:generic_work)
      }.to change{ subject.registered_curation_concern_types }.from([]).to(['GenericWork'])

    end

    context '#application_root_url' do
      around(:each) do |example|
        begin
          old_url = subject.application_root_url
          subject.application_root_url = nil
          example.run
        ensure
          subject.application_root_url = old_url
        end
        it 'should require application_root_url to be configured' do
          old_value = subject.application_root_url
          expect {
            subject.application_root_url
          }.to raise_error(RuntimeError)
        end
      end
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
curate-0.5.6 spec/lib/curate/configuration_spec.rb
curate-0.5.5 spec/lib/curate/configuration_spec.rb
curate-0.5.4 spec/lib/curate/configuration_spec.rb
curate-0.5.2 spec/lib/curate/configuration_spec.rb
curate-0.5.1 spec/lib/curate/configuration_spec.rb
curate-0.5.0 spec/lib/curate/configuration_spec.rb
curate-0.4.2 spec/lib/curate/configuration_spec.rb