Created
June 13, 2009 20:35
-
-
Save aslakhellesoy/129423 to your computer and use it in GitHub Desktop.
Revisions
-
aslakhellesoy revised this gist
Jun 13, 2009 . 2 changed files with 7 additions and 0 deletions.There are no files selected for viewing
File renamed without changes.This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ module Whatsnext class Application < Sinatra::Base post '/features/*' do puts request.body.read end end end -
aslakhellesoy created this gist
Jun 13, 2009 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ # RSpec require 'spec/expectations' # Webrat require 'rack/test' require 'webrat/sinatra' Webrat.configure do |config| config.mode = :sinatra end World(Webrat::Matchers, Webrat::HaveTagMatcher, Rack::Test::Methods) do context = OpenStruct.new(:app => Whatsnext::Application) Webrat::SinatraSession.new(context) end This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ When /^I save it as an existing file$/ do post("/foo", 'bar') end