Skip to content

Commit

Permalink
Adding failing spec to show how we should deal with form data
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuart Blair committed Jan 27, 2012
1 parent f866673 commit 693f977
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Gemfile
@@ -1,4 +1,5 @@
source "http://rubygems.org"
source "http://gemcutter"
#source "http://rubygems.org"

# Specify your gem's dependencies in reigns.gemspec
gemspec
2 changes: 1 addition & 1 deletion features/step_definitions/fake_dispatcher_steps.rb
Expand Up @@ -24,7 +24,7 @@
end

When /^I POST a body to (\S+) containing form data:\-$/ do |uri, table|
@last_response = send_request(:POST, uri) do |content|
@last_response = send_request('POST', uri) do |content|
content << URI.encode_www_form(uri)
puts "Incidentally Stuart, here's what the body of the form looks like:'#{content}'"
end
Expand Down
4 changes: 4 additions & 0 deletions spec/fake_dispatcher_servlet_spec.rb
Expand Up @@ -25,6 +25,10 @@ module Reigns
@fake_dispatcher_servlet.service(:get, "/goodbye").get_status.should eql 404
end
end

context "when receiving form data" do
pending
end
end

describe "message routing" do
Expand Down

0 comments on commit 693f977

Please sign in to comment.