Skip to content

Commit

Permalink
Use code block in doc for Expectation#when state_predicate param
Browse files Browse the repository at this point in the history
  • Loading branch information
olleolleolle authored and floehopper committed Mar 16, 2020
1 parent 729d43d commit b4f59da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mocha/expectation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ def then(state = nil)

# Constrains the expectation to occur only when the +state_machine+ is in the state specified by +state_predicate+.
#
# @param [StateMachine::StatePredicate] state_predicate state_machine.is(state_name) provides a mechanism to determine whether the +state_machine+ is in the state specified by +state_predicate+ when the expected method is invoked.
# @param [StateMachine::StatePredicate] state_predicate +state_machine.is(state_name)+ provides a mechanism to determine whether the +state_machine+ is in the state specified by +state_predicate+ when the expected method is invoked.
# @return [Expectation] the same expectation, thereby allowing invocations of other {Expectation} methods to be chained.
#
# @see API#states
Expand Down

0 comments on commit b4f59da

Please sign in to comment.