Sha256: f1e26845ae239393cd50869001817593aab50383fe8760a556bee038be1d5257

Contents?: true

Size: 417 Bytes

Versions: 7

Compression:

Stored size: 417 Bytes

Contents

require 'spec_helper'

describe LicenseFinder do
  describe ".config" do
    it "should load the configuration exactly once" do
      LicenseFinder.instance_variable_set(:@config, nil)

      LicenseFinder::Configuration.should_receive(:ensure_default).once.and_return(double(:config))

      LicenseFinder.config
      LicenseFinder.config

      LicenseFinder.instance_variable_set(:@config, nil)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
license_finder-1.1.1-java spec/lib/license_finder_spec.rb
license_finder-1.1.1 spec/lib/license_finder_spec.rb
license_finder-1.1.0 spec/lib/license_finder_spec.rb
license_finder-1.0.1 spec/lib/license_finder_spec.rb
license_finder-1.0.0.1 spec/lib/license_finder_spec.rb
license_finder-1.0.0.0 spec/lib/license_finder_spec.rb
license_finder-1.0.0.0-java spec/lib/license_finder_spec.rb