diff --git a/spec/private/core/form_spec.rb b/spec/private/core/form_spec.rb index aa28fa1..6c91eed 100644 --- a/spec/private/core/form_spec.rb +++ b/spec/private/core/form_spec.rb @@ -48,4 +48,22 @@ describe "Multiple nested params" do webrat_session.should_receive(:post).with("/family", params) click_button end + + it "should correctly construct a query string" do + Webrat.configuration.mode = :mechanize + + with_html <<-HTML + +
+ + +
+ + HTML + + params = { "query" => "my-query" } + + webrat_session.should_receive(:get).with("/search", params) + click_button + end end