require "spec_helper" describe "Helpers" do set_controller Rad::Face::Demo::Commons def body wcall(:forms) response.body end it "form_tag should correctly render form (from error)" do body.to_xhtml('#basic_form_tag').should_be_fuzzy_equal_to( id: 'basic_form_tag', action: '/some_action', method: 'post' ) end it "form_for should correctly render form (from error)" do body.to_xhtml('#basic_form_for').should_be_fuzzy_equal_to( id: 'basic_form_for', action: '/some_action', method: 'post' ) end end