module RSpec::Expectations::Syntax::ExpectExpressionGenerator

@api private Generates expectation expressions for the `expect` syntax.

Public Class Methods

negative_expression(target_expression, matcher_expression) click to toggle source
# File lib/rspec/expectations/syntax.rb, line 158
def self.negative_expression(target_expression, matcher_expression)
  "expect(#{target_expression}).not_to #{matcher_expression}"
end
positive_expression(target_expression, matcher_expression) click to toggle source
# File lib/rspec/expectations/syntax.rb, line 154
def self.positive_expression(target_expression, matcher_expression)
  "expect(#{target_expression}).to #{matcher_expression}"
end