Logo: Relish

  1. Sign in

Project: Bogus 0.0.4

Configuration Options

Bogus can be configured, similarly to many other frameworks with a configure block. This feature describes the configuration options available.

Scenarios
search_modules
Given
a file named "foo.rb" with:
class Foo
  def foo
  end
end

module Bar
  class Baz
    def baz
    end
  end
end
Then
spec file with following content should pass:

Bogus.configure do |c|
  c.search_modules << Bar
end

describe "logger class fake" do
  fake(:foo)
  fake(:baz)

  it "finds classes in global namespace" do
    foo.foo
  end

  it "finds classes in specified modules" do
    baz.baz
  end
end

Last published about 7 years ago by Adam Pohorecki.