Sha256: 838433e4bc7258e914617c0e0a108a08d045258f41e58d1ff27ddd53525af867
Contents?: true
Size: 425 Bytes
Versions: 3
Compression:
Stored size: 425 Bytes
Contents
require 'spec_helper' describe Vanguard::DSL, '#validates_presence_of' do include Spec::Shared::DSL before { builder.validates_presence_of attribute_name } describe 'when validated attribute is present' do let(:attribute_value) { :foo } it_should_be_a_valid_instance end describe 'when validated attribute is absent' do let(:attribute_value) { nil } it_should_be_an_invalid_instance end end
Version data entries
3 entries across 3 versions & 1 rubygems