Sha256: 4fc58729f6760bbd2c89c5df923f7f6a8bc5730e278409934d46596fc76fe32f
Contents?: true
Size: 696 Bytes
Versions: 2
Compression:
Stored size: 696 Bytes
Contents
# coding: utf-8 require File.dirname(__FILE__) + '/test_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
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
lperichon-formtastic-0.9.2 | spec/error_proc_spec.rb |
formtastic-0.9.1 | spec/error_proc_spec.rb |