module Pathway::Rspec::FieldListHelpers
Public Instance Methods
field_list()
click to toggle source
# File lib/pathway/rspec/matchers/field_list_helpers.rb, line 10 def field_list as_list(@fields) end
pluralize_fields()
click to toggle source
# File lib/pathway/rspec/matchers/field_list_helpers.rb, line 18 def pluralize_fields @fields.size > 1 ? 'fields' : 'field' end
were_was(list)
click to toggle source
# File lib/pathway/rspec/matchers/field_list_helpers.rb, line 14 def were_was(list) list.size > 1 ? 'were' : 'was' end