Permalink
Browse files

Make sinatra integration specs work on current version of sinatra

Current version has Sinatra::Response as the body, which does
not respond to join.  The rack spec requires it respond to each,
not join, so use each instead.
  • Loading branch information...
1 parent f711d2b commit 90f26c780c359a55cdb3695fd9e40a4c7c2d1b9f @jeremyevans committed Jan 17, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 spec/sinatra_integration_spec.rb
View
4 spec/sinatra_integration_spec.rb
@@ -138,7 +138,9 @@ class FormeSinatraTest < Sinatra::Base
describe "Forme Sinatra ERB integration" do
def sin_get(path)
- FormeSinatraTest.new.call(@rack.merge('PATH_INFO'=>path))[2].join.gsub(/\s+/, ' ').strip
+ s = ''
+ FormeSinatraTest.new.call(@rack.merge('PATH_INFO'=>path))[2].each{|str| s << str}
+ s.gsub(/\s+/, ' ').strip
end
before do
o = Object.new

0 comments on commit 90f26c7

Please sign in to comment.