Sha256: 047e1f267fd4d398057d119e5cb24e54b2cdbb81975c6f1210422d838aa7789c

Contents?: true

Size: 763 Bytes

Versions: 4

Compression:

Stored size: 763 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

4 entries across 4 versions & 1 rubygems

Version Path
bogus-0.0.4 features/configuration_options.feature
bogus-0.0.3 features/configuration_options.feature
bogus-0.0.3.rc.2 features/configuration_options.feature
bogus-0.0.3.rc.1 features/configuration_options.feature