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