Sha256: 71fcda279b9bff4f9ecbfe59b03c18a6cd2d3ae1f2749724452fd2510e6dcb8e

Contents?: true

Size: 421 Bytes

Versions: 2

Compression:

Stored size: 421 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)

      expect(LicenseFinder::Configuration).to receive(:ensure_default).once.and_return(double(:config))

      LicenseFinder.config
      LicenseFinder.config

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
license_finder-1.2 spec/lib/license_finder_spec.rb
license_finder-1.2-java spec/lib/license_finder_spec.rb