module RSpec::Expectations::Syntax::ShouldExpressionGenerator
@api private Generates expectation expressions for the `should` syntax.
Public Class Methods
negative_expression(target_expression, matcher_expression)
click to toggle source
# File lib/rspec/expectations/syntax.rb, line 146 def self.negative_expression(target_expression, matcher_expression) "#{target_expression}.should_not #{matcher_expression}" end
positive_expression(target_expression, matcher_expression)
click to toggle source
# File lib/rspec/expectations/syntax.rb, line 142 def self.positive_expression(target_expression, matcher_expression) "#{target_expression}.should #{matcher_expression}" end