Method: RSpec::Matchers::EnglishPhrasing.split_words
- Defined in:
- lib/rspec/matchers/english_phrasing.rb
.split_words(sym) ⇒ Object
Converts a symbol into an English expression.
split_words(:banana_creme_pie) #=> "banana creme pie"
9 10 11 |
# File 'lib/rspec/matchers/english_phrasing.rb', line 9 def self.split_words(sym) sym.to_s.tr('_', ' ') end |