Sha256: 978c351e5b34468c579ab1f6affeb1c907dfa0d1a82b471af76e8fdc92e30629
Contents?: true
Size: 400 Bytes
Versions: 1
Compression:
Stored size: 400 Bytes
Contents
require 'spec_helper' module TransForms describe FormErrors do describe '#error_models' do it 'does not raise an error when called on a form model without a main_instance' do form = UserUpdater.new expect(form.main_model).to eq(:user) expect(form.main_instance).to be nil expect { form.errors.error_models }.not_to raise_error end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trans_forms-0.1.0 | spec/trans_forms/form_errors_spec.rb |