Sha256: 0aed754f844a539eac0b4196597d86db53378fc3f95e9868c83cf57c59061449

Contents?: true

Size: 764 Bytes

Versions: 2

Compression:

Stored size: 764 Bytes

Contents

Feature: Configuration Options

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

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

    module Bar
      class Baz
        def baz
        end
      end
    end
    """

    Then spec file with following content should pass:
    """ruby

    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
    """


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bogus-0.0.2 features/configuration_options.feature
bogus-0.0.1 features/configuration_options.feature