Sha256: 9b052ce2bcb8eb2037c10061f78db2a358c18247bac35b2ec7751d6cefda22aa
Contents?: true
Size: 607 Bytes
Versions: 3
Compression:
Stored size: 607 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 do include RSpec::Rails::HelperExampleGroup 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 RulesView::FormBuilder" do options = {} helper.should_receive(action.to_sym).with("Name", {:builder => RulesView::FormBuilder}) helper.send("re_#{action}", "Name", options) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rules_view-0.0.3 | spec/lib/rules_view/form_builder_spec.rb |
rules_view-0.0.2 | spec/lib/rules_view/form_builder_spec.rb |
rules_view-0.0.1 | spec/lib/rules_view/form_builder_spec.rb |