Method: Assay::Assertable#assertive_name

Defined in:
lib/assay/assertable.rb

#assertive_nameObject

The assertive name is used for the construction of assertive nomenclatures such as ‘assert_equal`.



36
37
38
39
40
41
42
43
44
# File 'lib/assay/assertable.rb', line 36

def assertive_name
  @assertive_name ||= (
    if operator.to_s.end_with?('?')
      operator.to_s.chomp('?').to_sym
    else
      name.split('::').last.chomp('Assay').downcase.to_sym
    end
  )
end