module RSpec::Matchers::BuiltIn::BeHelpers
@private
Private Instance Methods
args_to_s()
click to toggle source
# File lib/rspec/matchers/built_in/be.rb, line 77 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 93 def args_to_sentence EnglishPhrasing.list(@args) end
expected_to_sentence()
click to toggle source
# File lib/rspec/matchers/built_in/be.rb, line 89 def expected_to_sentence EnglishPhrasing.split_words(@expected) end
inspected_args()
click to toggle source
# File lib/rspec/matchers/built_in/be.rb, line 85 def inspected_args @args.map { |a| RSpec::Support::ObjectFormatter.format(a) } end
parenthesize(string)
click to toggle source
# File lib/rspec/matchers/built_in/be.rb, line 81 def parenthesize(string) "(#{string})" end