Sha256: 89982210a0d28b23c307acfc9b97c28891586bd289f25a80f23716b560a4c02a
Contents?: true
Size: 780 Bytes
Versions: 2
Compression:
Stored size: 780 Bytes
Contents
require_relative '../../../spec_helper' require_relative '../../shared/macros/integration_spec' require 'aequitas' Aequitas::Macros::IntegrationSpec.describe Aequitas::Macros, '#validates_confirmation_of' do before do class_under_test.send(:attr_accessor, "#{attribute_name}_confirmation") class_under_test.validates_confirmation_of attribute_name subject.send("#{attribute_name}_confirmation=", confirmation_value) end describe 'when confirmation value matches' do let(:attribute_value) { :foo } let(:confirmation_value) { :foo } it_should_be_a_valid_instance end describe 'when confirmation value does not match' do let(:attribute_value) { :foo } let(:confirmation_value) { :bar } 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_confirmation_of_spec.rb |
aequitas-0.0.1 | spec/integration/aequitas/macros/validates_confirmation_of_spec.rb |