Sha256: 2fca26523e9229ca8ef57cc40c836d82fdfc6ee296b078c1f8d2859102131408

Contents?: true

Size: 365 Bytes

Versions: 23

Compression:

Stored size: 365 Bytes

Contents

require 'pathway/rspec/matchers/list_helpers'

module Pathway
  module Rspec
    module FieldListHelpers
      include ListHelpers

      def field_list
        as_list(@fields)
      end

      def were_was(list)
        list.size > 1 ? "were" : "was"
      end

      def pluralize_fields
        @fields.size > 1 ? "fields" : "field"
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
pathway-0.10.0 lib/pathway/rspec/matchers/field_list_helpers.rb
pathway-0.9.1 lib/pathway/rspec/matchers/field_list_helpers.rb
pathway-0.9.0 lib/pathway/rspec/matchers/field_list_helpers.rb
pathway-0.8.0 lib/pathway/rspec/matchers/field_list_helpers.rb
pathway-0.7.0 lib/pathway/rspec/matchers/field_list_helpers.rb
pathway-0.6.2 lib/pathway/rspec/matchers/field_list_helpers.rb
pathway-0.6.1 lib/pathway/rspec/matchers/field_list_helpers.rb
pathway-0.6.0 lib/pathway/rspec/matchers/field_list_helpers.rb
pathway-0.5.1 lib/pathway/rspec/matchers/field_list_helpers.rb
pathway-0.5.0 lib/pathway/rspec/matchers/field_list_helpers.rb
pathway-0.4.0 lib/pathway/rspec/matchers/field_list_helpers.rb
pathway-0.0.20 lib/pathway/rspec/matchers/field_list_helpers.rb
pathway-0.0.19 lib/pathway/rspec/matchers/field_list_helpers.rb
pathway-0.0.18 lib/pathway/rspec/matchers/field_list_helpers.rb
pathway-0.0.17 lib/pathway/rspec/matchers/field_list_helpers.rb
pathway-0.0.16 lib/pathway/rspec/matchers/field_list_helpers.rb
pathway-0.0.15 lib/pathway/rspec/matchers/field_list_helpers.rb
pathway-0.0.14 lib/pathway/rspec/matchers/field_list_helpers.rb
pathway-0.0.13 lib/pathway/rspec/matchers/field_list_helpers.rb
pathway-0.0.12 lib/pathway/rspec/matchers/field_list_helpers.rb