Sha256: c20c9c05ad161cbbd8e06a1b27a8253c0d37f985c5e545fb639efec9ee6a82e8
Contents?: true
Size: 535 Bytes
Versions: 2
Compression:
Stored size: 535 Bytes
Contents
require_relative '../../../spec_helper' require_relative '../../shared/macros/integration_spec' require 'aequitas' Aequitas::Macros::IntegrationSpec.describe Aequitas::Macros, '#validates_presence_of' do before { class_under_test.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aequitas-0.0.2 | spec/integration/aequitas/macros/validates_presence_of_spec.rb |
aequitas-0.0.1 | spec/integration/aequitas/macros/validates_presence_of_spec.rb |