custom_example_group.feature

features/extensions/custom_example_group.feature
Last Update: Thu Apr 30 18:23:48 -0500 2009

Feature: custom example group

Scenario: simple custom example group
  Given a file named "custom_example_group_spec.rb" with:
  """
  class CustomGroup < Spec::ExampleGroup
  end

  Spec::Example::ExampleGroupFactory.default(CustomGroup)

  describe "setting a default example group base class" do
    it "should use that class by default" do
      CustomGroup.should === self
    end
  end
  """
  When I run "spec custom_example_group_spec.rb"
  Then the stdout should match "1 example, 0 failures"