require File.join(File.dirname(__FILE__), "..", "..", "example_helper.rb") describe "Relevance::Tarantula::Form large example" do before do @tag = Hpricot(< END @form = Relevance::Tarantula::Form.new(@tag.at('form')) end it "has an action" do @form.action.should == "/session" end it "has a method" do @form.method.should == "post" end end describe "A Relevance::Tarantula::Form" do it "defaults method to 'get'" do @tag = Hpricot("
") @form = Relevance::Tarantula::Form.new(@tag.at('form')) @form.method.should == 'get' end end describe "A Relevance::Tarantula::Form with a hacked _method" do before do @tag = Hpricot(< END @form = Relevance::Tarantula::Form.new(@tag.at('form')) end it "has a method" do @form.method.should == "put" end end