Module: RSpec::Expectations::Syntax::ShouldExpressionGenerator Private
- Defined in:
- lib/rspec/expectations/syntax.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Generates expectation expressions for the should
syntax.
Class Method Summary (collapse)
- + (Object) negative_expression(target_expression, matcher_expression) private
- + (Object) positive_expression(target_expression, matcher_expression) private
Class Method Details
+ (Object) negative_expression(target_expression, matcher_expression)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
144 145 146 |
# File 'lib/rspec/expectations/syntax.rb', line 144 def self.negative_expression(target_expression, matcher_expression) "#{target_expression}.should_not #{matcher_expression}" end |
+ (Object) positive_expression(target_expression, matcher_expression)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
140 141 142 |
# File 'lib/rspec/expectations/syntax.rb', line 140 def self.positive_expression(target_expression, matcher_expression) "#{target_expression}.should #{matcher_expression}" end |