spec/unit/form_builder_spec.rb in activeadmin-0.4.1 vs spec/unit/form_builder_spec.rb in activeadmin-0.4.2
- old
+ new
@@ -22,10 +22,14 @@
else
super
end
end
+ def view.a_helper_method
+ "A Helper Method"
+ end
+
view
end
def build_form(options = {}, &block)
options.merge!({:url => posts_path})
@@ -177,9 +181,10 @@
end
it "should create 2 radio buttons" do
body.scan(/type=\"radio\"/).size.should == 2
end
end
+
end
context "with inputs 'for'" do
let :body do
build_form do |f|