Sha256: ff48c6e0ff3d30c167f7f8a38b938dcd0a1903e52437a2e3136a8dd136a4e63a
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_with_method' do before { class_under_test.validates_with_method attribute_name } describe 'when method returns a truthy value' do let(:attribute_value) { true } it_should_be_a_valid_instance end describe 'when method returns a falsy value' 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_with_method.rb |
aequitas-0.0.1 | spec/integration/aequitas/macros/validates_with_method.rb |