Sha256: 6e56129a7c57b30045feb392a25f8e289eb70bf13eef44b808d9629b277c9e6c
Contents?: true
Size: 540 Bytes
Versions: 2
Compression:
Stored size: 540 Bytes
Contents
require_relative '../../../spec_helper' require_relative '../../shared/macros/integration_spec' require 'aequitas' Aequitas::Macros::IntegrationSpec.describe Aequitas::Macros, '#validates_acceptance_of' do before { class_under_test.validates_acceptance_of attribute_name } describe 'when attribute value is accepted' do let(:attribute_value) { true } it_should_be_a_valid_instance end describe 'when attribute value is not accepted' do let(:attribute_value) { false } 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_acceptance_of_spec.rb |
aequitas-0.0.1 | spec/integration/aequitas/macros/validates_acceptance_of_spec.rb |