module RSpec::Matchers::BuiltIn::BeHelpers

Private Instance Methods

args_to_s() click to toggle source
# File lib/rspec/matchers/built_in/be.rb, line 51
def args_to_s
  @args.empty? ? "" : parenthesize(inspected_args.join(', '))
end
args_to_sentence() click to toggle source
# File lib/rspec/matchers/built_in/be.rb, line 67
def args_to_sentence
  to_sentence(@args)
end
expected_to_sentence() click to toggle source
# File lib/rspec/matchers/built_in/be.rb, line 63
def expected_to_sentence
  split_words(@expected)
end
inspected_args() click to toggle source
# File lib/rspec/matchers/built_in/be.rb, line 59
def inspected_args
  @args.collect{|a| a.inspect}
end
parenthesize(string) click to toggle source
# File lib/rspec/matchers/built_in/be.rb, line 55
def parenthesize(string)
  "(#{string})"
end