module RSpec::CollectionMatchers::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/collection_matchers/have.rb, line 194 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/collection_matchers/have.rb, line 190 def self.positive_expression(target_expression, matcher_expression) "expect(#{target_expression}).to #{matcher_expression}" end