Skip to content

Commit

Permalink
Make specs pass with recent version of Sinatra
Browse files Browse the repository at this point in the history
Sinatra is not doing anything wrong, as rack.errors is required
by the Rack SPEC.
  • Loading branch information
jeremyevans committed Dec 18, 2024
1 parent 7452d6d commit b3631c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/sinatra_integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def self.get(path, &block)
describe "Forme Sinatra ERB integration" do
def sin_get(path)
s = String.new
FormeSinatraTest.new.call(@rack.merge('PATH_INFO'=>path))[2].each{|str| s << str}
FormeSinatraTest.new.call(@rack.merge('PATH_INFO'=>path, 'rack.errors'=>$stderr))[2].each{|str| s << str}
s.gsub(/\s+/, ' ').strip
end

Expand Down

0 comments on commit b3631c9

Please sign in to comment.