Sha256: 6391ffae68ddb16e787715ca2a8a41f5cef4bd138922be59c6b7bb99c24303ab
Contents?: true
Size: 723 Bytes
Versions: 1
Compression:
Stored size: 723 Bytes
Contents
# coding: utf-8 require File.dirname(__FILE__) + '/spec_helper' describe 'Rails field_error_proc' do include FormtasticSpecHelper before do @output_buffer = ActiveSupport::SafeBuffer.new 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
formtastic-rails3-0.9.7 | spec/error_proc_spec.rb |