lib/remarkable/messages.rb in remarkable-3.0.1 vs lib/remarkable/messages.rb in remarkable-3.0.2

- old
+ new

@@ -17,18 +17,18 @@ # Provides a default failure message. Overwrite it if needed. # def failure_message_for_should Remarkable.t 'remarkable.core.failure_message_for_should', :expectation => @expectation - end + end alias :failure_message :failure_message_for_should # Provides a default negative failure message. Overwrite it if needed. # def failure_message_for_should_not Remarkable.t 'remarkable.core.failure_message_for_should_not', :expectation => @expectation - end + end alias :negative_failure_message :failure_message_for_should_not private # Returns the matcher scope in I18n. @@ -53,21 +53,21 @@ # negative_failure_message. It provides by default the subject_name and # the subject_inspect value. But when used with DSL, it provides a whole # bunch of options (check dsl/matches.rb for more information). # def default_i18n_options - interpolation_options.update( + interpolation_options.update( :scope => matcher_i18n_scope, :subject_name => subject_name, :subject_inspect => @subject.inspect ) - end - - # Method to be overwritten if user wants to provide more interpolation - # options to I18n. - # - def interpolation_options - {} + end + + # Method to be overwritten if user wants to provide more interpolation + # options to I18n. + # + def interpolation_options + {} end # Returns the not word from I18n API. # def not_word