Sha256: e962128dffce3e91e188438b89c97c8fcf5182bc5d6a6a4c53465537664bf4fd

Contents?: true

Size: 260 Bytes

Versions: 5

Compression:

Stored size: 260 Bytes

Contents

require 'tester/definition/fields/field'

class NumberField < Field
  def initialize(name, default_value=5)
    super(name, default_value)
  end

  def negative_boundary_values
    super +
    [
      "string",
      true,
      false,
      {}
    ]
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
api-tester-0.1.0 lib/tester/definition/fields/number_field.rb
api-tester-0.0.5 lib/tester/definition/fields/number_field.rb
api-tester-0.0.4 lib/tester/definition/fields/number_field.rb
api-tester-0.0.3 lib/tester/definition/fields/number_field.rb
api-tester-0.0.1 lib/tester/definition/fields/number_field.rb