123456789_123456789_123456789_123456789_123456789_

Module: RSpec::Matchers::BuiltIn::BeHelpers Private

Do not use. This module is for internal use only.
Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: rspec-expectations/lib/rspec/matchers/built_in/be.rb

Instance Method Summary

Instance Method Details

#args_to_s (private)

[ GitHub ]

  
# File 'rspec-expectations/lib/rspec/matchers/built_in/be.rb', line 77

def args_to_s
  @args.empty? ? "" : parenthesize(inspected_args.join(', '))
end

#args_to_sentence (private)

[ GitHub ]

  
# File 'rspec-expectations/lib/rspec/matchers/built_in/be.rb', line 93

def args_to_sentence
  EnglishPhrasing.list(@args)
end

#expected_to_sentence (private)

[ GitHub ]

  
# File 'rspec-expectations/lib/rspec/matchers/built_in/be.rb', line 89

def expected_to_sentence
  EnglishPhrasing.split_words(@expected)
end

#inspected_args (private)

[ GitHub ]

  
# File 'rspec-expectations/lib/rspec/matchers/built_in/be.rb', line 85

def inspected_args
  @args.map { |a| RSpec::Support::ObjectFormatter.format(a) }
end

#parenthesize(string) (private)

[ GitHub ]

  
# File 'rspec-expectations/lib/rspec/matchers/built_in/be.rb', line 81

def parenthesize(string)
  "(#{string})"
end