Module: Spec::Matchers
- Defined in:
- lib/remarkable/rspec.rb
Overview
:nodoc:
Class Method Summary collapse
-
.generated_description ⇒ Object
Overwrites to provide I18n on should and should_not.
Class Method Details
.generated_description ⇒ Object
Overwrites to provide I18n on should and should_not.
5 6 7 8 9 |
# File 'lib/remarkable/rspec.rb', line 5 def self.generated_description return nil if last_should.nil? verb = Remarkable.t "remarkable.core.#{last_should}", :default => last_should.to_s.gsub('_',' ') "#{verb} #{last_description}" end |