Sha256: 8011214fcca61a15fdf90a7be2d1598e88133c95d2478235850d75957ed905e3

Contents?: true

Size: 389 Bytes

Versions: 3

Compression:

Stored size: 389 Bytes

Contents

require_relative '../spec_helper'

describe Bogus::Configuration do
  before { Bogus.reset! }

  it "stores the modules to be searched" do
    Bogus.configure do |c|
      c.search_modules << String
    end

    expect(Bogus.config.search_modules).to eq [Object, String]
  end

  it "defaults search_modules to [Object]" do
    expect(Bogus.config.search_modules).to eq [Object]
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bogus-0.1.7 spec/bogus/configuration_spec.rb
bogus-0.1.6 spec/bogus/configuration_spec.rb
bogus-0.1.5 spec/bogus/configuration_spec.rb