Sha256: 116deb415d4737bb37dc134113e2ad71b2f28a625b4821a3a8b6ccdf974d6546
Contents?: true
Size: 696 Bytes
Versions: 23
Compression:
Stored size: 696 Bytes
Contents
# coding: utf-8 require File.dirname(__FILE__) + '/spec_helper' describe 'Rails field_error_proc' do include FormtasticSpecHelper before do @output_buffer = '' mock_everything end it "should not be overridden globally for all form builders" do current_field_error_proc = ::ActionView::Base.field_error_proc semantic_form_for(@new_post) do |builder| ::ActionView::Base.field_error_proc.should_not == current_field_error_proc end ::ActionView::Base.field_error_proc.should == current_field_error_proc form_for(@new_post) do |builder| ::ActionView::Base.field_error_proc.should == current_field_error_proc end end end
Version data entries
23 entries across 23 versions & 5 rubygems
Version | Path |
---|---|
formtastic-0.9.4 | spec/error_proc_spec.rb |
formtastic-0.9.3 | spec/error_proc_spec.rb |
formtastic-0.9.2 | spec/error_proc_spec.rb |