Sha256: def965f428cfb8691264b4735faedfc6cecf4a496e36ea29e4e6ea59b89d4fc8

Contents?: true

Size: 268 Bytes

Versions: 5

Compression:

Stored size: 268 Bytes

Contents

require 'tester/definition/fields/field'

class BooleanField < Field
  def initialize(name, default_value=true)
    super(name, default_value)
  end

  def negative_boundary_values
    super +
    [
      "string",
      123,
      0,
      1,
      {}
    ]
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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