Skip to content
Browse files

Add cuke documenting `config.alias_example_to`.

  • Loading branch information...
1 parent 75dd47f commit 750fe1424a867e4be86335b3c8fe517b7e6a581a @myronmarston myronmarston committed
Showing with 25 additions and 0 deletions.
  1. +1 −0 features/.nav
  2. +24 −0 features/configuration/alias_example_to.feature
View
1 features/.nav
@@ -41,6 +41,7 @@
- fail_fast.feature
- custom_settings.feature
- for_groups_matching.feature
+ - alias_example_to.feature
- expectation_framework_integration:
- configure_expectation_framework.feature
- mock_framework_integration:
View
24 features/configuration/alias_example_to.feature
@@ -0,0 +1,24 @@
+Feature: alias_example_to
+
+ Use `config.alias_example_to` to create new example group methods
+ that define examples with the configured metadata.
+
+ Scenario: Use alias_example_to to define focused example
+ Given a file named "alias_example_to_spec.rb" with:
+ """
+ RSpec.configure do |c|
+ c.alias_example_to :fit, :focused => true
+ c.filter_run :focused => true
+ end
+
+ describe "an example group" do
+ it "does one thing" do
+ end
+
+ fit "does another thing" do
+ end
+ end
+ """
+ When I run "rspec alias_example_to_spec.rb --format doc"
+ Then the output should contain "does another thing"
+ And the output should not contain "does one thing"

0 comments on commit 750fe14

Please sign in to comment.
Something went wrong with that request. Please try again.