Sha256: 68a13922535760f7b2482aa5f8a60b80fd8dbc54bf4f900c29896184dea31e7d
Contents?: true
Size: 388 Bytes
Versions: 8
Compression:
Stored size: 388 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_not validate(:numericality).of :field_c } it { should_not validate(:numericality).of(:field_c).with only_integer: true } 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