Module Remarkable::Messages
In: lib/remarkable/messages.rb

Holds the methods required by rspec for each matcher plus a collection of helpers to deal with I18n.

Methods

Public Instance methods

Provides a default description message. Overwrite it if needed. By default it uses default i18n options, but without the subjects, which usually are not available when description is called.

[Source]

    # File lib/remarkable/messages.rb, line 11
11:     def description(options={})
12:       options = default_i18n_options.merge(options)
13: 
14:       # Remove subject keys

15:       options.delete(:subject_name)
16:       options.delete(:subject_inspect)
17: 
18:       Remarkable.t 'description', options
19:     end
failure_message()

Provides a default failure message. Overwrite it if needed.

[Source]

    # File lib/remarkable/messages.rb, line 23
23:     def failure_message_for_should
24:       Remarkable.t 'remarkable.core.failure_message_for_should', :expectation => @expectation
25:     end

Provides a default negative failure message. Overwrite it if needed.

[Source]

    # File lib/remarkable/messages.rb, line 30
30:     def failure_message_for_should_not
31:       Remarkable.t 'remarkable.core.failure_message_for_should_not', :expectation => @expectation
32:     end
negative_failure_message()

[Validate]