File: configuration_spec.rb

package info (click to toggle)
ruby-bogus 0.1.5-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 828 kB
  • ctags: 628
  • sloc: ruby: 4,124; makefile: 6; sh: 2
file content (17 lines) | stat: -rw-r--r-- 389 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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