Top Level Namespace
Defined Under Namespace
Modules: NilifyBlanks
Instance Method Summary collapse
- #failure_message_method ⇒ Object
- #negated_failure_message_method ⇒ Object
- #rspec_major_version ⇒ Object
Instance Method Details
#failure_message_method ⇒ Object
3 4 5 6 7 |
# File 'lib/nilify_blanks/matchers.rb', line 3 def rspec_major_version >= 3 ? :failure_message : :failure_message_for_should rescue :failure_message_for_should end |
#negated_failure_message_method ⇒ Object
9 10 11 12 13 |
# File 'lib/nilify_blanks/matchers.rb', line 9 def rspec_major_version >= 3 ? :failure_message_when_negated : :failure_message_for_should_not rescue :failure_message_for_should_not end |
#rspec_major_version ⇒ Object
15 16 17 |
# File 'lib/nilify_blanks/matchers.rb', line 15 def rspec_major_version RSpec::Core::Version::STRING.split('.').first.to_i end |