Sha256: 899374bba81bfb35d7762895dc4e30201b7fcbb0ad58c8e732ad353134a3d581
Contents?: true
Size: 411 Bytes
Versions: 2
Compression:
Stored size: 411 Bytes
Contents
libs = %w[ active_model active_support/core_ext pry pry-nav rspec validation_matcher ] libs.each { |lib| require lib } class Thing extend ActiveModel::Naming include ActiveModel::Conversion include ActiveModel::Validations attr_accessor :field_a, :field_b, :field_c validates :field_b, presence: true validates :field_c, numericality: { allow_nil: false, only_integer: true } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
validation_matcher-0.1.6 | spec/spec_helper.rb |
validation_matcher-0.1.5 | spec/spec_helper.rb |