test/support/fake_sinatra_call.rb in deas-0.42.0 vs test/support/fake_sinatra_call.rb in deas-0.43.0

- old
+ new

@@ -1,6 +1,7 @@ require 'test/support/fake_request' +require 'test/support/fake_response' class FakeSinatraCall # Mimic's the context that is accessible in a Sinatra' route. Should provide # any methods needed to replace using an actual Sinatra app. @@ -65,17 +66,6 @@ SendFileArgs.new(file_path, opts, nil) end end SendFileArgs = Struct.new(:file_path, :options, :block_call_result) -end - -class FakeResponse < Struct.new(:status, :headers, :body) - def initialize(args = nil) - args ||= {} - super(*[ - args[:status] || Factory.integer, - args[:headers] || {}, - args[:body] || [Factory.text] - ]) - end end