Sha256: 575a9ac04c2cd317e8a179481e26fd79748695d0114f096faafb9ccb164b957c
Contents?: true
Size: 485 Bytes
Versions: 3
Compression:
Stored size: 485 Bytes
Contents
require 'spec_helper' describe User, type: :model do it { is_expected.to have_default_value_for(:name) } it { is_expected.to have_default_value_for(:name).with_value('no name') } it { is_expected.to have_default_value_for(:name).with_value('no name').and_allow_nil } it { is_expected.to have_default_value_for(:age) } it { is_expected.to have_default_value_for(:age).with_value(20) } it { is_expected.to have_default_value_for(:age).with_value(20).and_disallow_nil } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
default_value_for-matchers-0.2.1 | spec/models/user_spec.rb |
default_value_for-matchers-0.2.0 | spec/models/user_spec.rb |
default_value_for-matchers-0.1.1 | spec/models/user_spec.rb |