Sha256: 5c3d516b6a7986437192ac416f76f59dbe8ea2e518e352466cf76755c9fb67a7

Contents?: true

Size: 253 Bytes

Versions: 8

Compression:

Stored size: 253 Bytes

Contents

require 'spec_helper'

describe Thing do

  it { should_not validate(:presence).of(:field_a) }
  it { should     validate(:presence).of(:field_b) }
  it { should     validate(:numericality).of(:field_c).with(only_integer: true, allow_nil: false) }

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
validation_matcher-0.1.7 spec/thing_spec.rb
validation_matcher-0.1.6 spec/thing_spec.rb
validation_matcher-0.1.5 spec/thing_spec.rb
validation_matcher-0.1.4 spec/thing_spec.rb
validation_matcher-0.1.3 spec/thing_spec.rb
validation_matcher-0.1.2 spec/thing_spec.rb
validation_matcher-0.1.1 spec/thing_spec.rb
validation_matcher-0.1.0 spec/thing_spec.rb