Skip to content

Commit

Permalink
Merge pull request #2158 from mrageh/ma-update-one-liner-documentation
Browse files Browse the repository at this point in the history
Clarify one-liner syntax cannot be used with block matchers
  • Loading branch information
JonRowe committed Jan 18, 2016
2 parents be0e1bc + b249014 commit d2ab059
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions features/subject/one_liner_syntax.feature
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Feature: One-liner syntax

* This feature is only available when using rspec-expectations.
* Examples defined using this one-liner syntax cannot be directly selected from the command line using the [`--example` option](../command-line/example-option).
* The one-liner syntax only works with non-block expectations (e.g. `expect(obj).to eq`, etc) and it cannot be used with block expectations (e.g. `expect { object }`).

Scenario: Implicit subject
Given a file named "example_spec.rb" with:
Expand Down

0 comments on commit d2ab059

Please sign in to comment.