Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 90f26c780c359a55cdb3695fd9e40a4c7c2d1b9f 1 parent f711d2b
@jeremyevans authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.