test/spec_builder.rb in rack-1.3.6 vs test/spec_builder.rb in rack-1.3.7
- old
+ new
@@ -146,7 +146,13 @@
$: << File.dirname(__FILE__)
app, options = Rack::Builder.parse_file 'builder/anything'
Rack::MockRequest.new(app).get("/").body.to_s.should.equal 'OK'
$:.pop
end
+
+ it "sets __LINE__ correctly" do
+ app, options = Rack::Builder.parse_file config_file('line.ru')
+ options = nil # ignored, prevents warning
+ Rack::MockRequest.new(app).get("/").body.to_s.should.equal '1'
+ end
end
end