Sha256: 1be6650bbcd2d452a05ae8b8f20d5b247e0846c45fcebe41428b5fd7e6233f7f

Contents?: true

Size: 324 Bytes

Versions: 3

Compression:

Stored size: 324 Bytes

Contents

require 'api-tester/definition/fields/field'

module ApiTester
  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
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
api-tester-0.3.1 lib/api-tester/definition/fields/boolean_field.rb
api-tester-0.3.0 lib/api-tester/definition/fields/boolean_field.rb
api-tester-0.2.0 lib/api-tester/definition/fields/boolean_field.rb