Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (19 sloc) 0.653 kb
# encoding: utf-8
require '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
Jump to Line
Something went wrong with that request. Please try again.