Module: I18nSpec::FailureMessage
- Defined in:
- lib/i18n-spec/failure_message.rb
Instance Method Summary collapse
Instance Method Details
#failure_for_should ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/i18n-spec/failure_message.rb', line 3 def failure_for_should if respond_to?(:failure_message) # Rspec 3 { |f| yield(f) } else # Rspec 2 { |f| yield(f) } end end |
#failure_for_should_not ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/i18n-spec/failure_message.rb', line 13 def failure_for_should_not if respond_to?(:failure_message_when_negated) # Rspec 3 { |f| yield(f) } else # Rspec 2 { |f| yield(f) } end end |