Sha256: 281a3f7da85678f646b9f9c4aea723afb3905391857f478f506a860b9e14f896
Contents?: true
Size: 610 Bytes
Versions: 17
Compression:
Stored size: 610 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) ) + "/../spec_helper" %w(form_for fields_for form_remote_for remote_form_for).each do |action| describe action, :type => :helper do it "should be accessible to rails apps by default" do ActionView::Base.new.methods.should include("re_#{action}") end it "should set the builder to the RulesEngineView::FormBuilder" do options = {} helper.should_receive(action.to_sym).with("Name", {:builder => RulesEngineView::FormBuilder}) eval_erb("<%=re_#{action}(\"Name\", #{options.inspect})%>") end end end
Version data entries
17 entries across 17 versions & 1 rubygems