Sha256: 1f624378a182893b1626650c55c591f69647aa7305f8f52197c2167b03b22354
Contents?: true
Size: 435 Bytes
Versions: 5
Compression:
Stored size: 435 Bytes
Contents
require "rails/all" require "shoulda-matchers" Shoulda::Matchers.configure do |config| config.integrate do |with| with.test_framework :rspec with.library :rails end end class MyModel include ActiveModel::Model include ActiveModel::Attributes include ActiveModel::Validations include ActiveModel::Validations::Callbacks validates :name, presence: true attribute :name, :string attribute :age, :integer end
Version data entries
5 entries across 5 versions & 1 rubygems