Sha256: 5c66df252c55f1c178b515880b301b3d953f019946a99d4bd060e21e7a02e513
Contents?: true
Size: 710 Bytes
Versions: 5
Compression:
Stored size: 710 Bytes
Contents
require 'spec_helper' describe 'ModelErrorMessages::Configuration' do let(:klass) { ModelErrorMessages } subject { klass.configuration } it 'can be set by a block' do klass.configure do |config| config.single_error_in_paragraph = 'test' end expect(subject.single_error_in_paragraph).to eql('test') end it 'can be set individually' do subject.single_error_in_paragraph = 'test' expect(subject.single_error_in_paragraph).to eql('test') end it 'can be resetted' do subject.single_error_in_paragraph = 'test' expect(subject.single_error_in_paragraph).to eql('test') subject.reset expect(subject.single_error_in_paragraph).not_to eql('test') end end
Version data entries
5 entries across 5 versions & 1 rubygems