Permalink
Browse files

update metal fixtures to be ruby 1.9 compat

  • Loading branch information...
1 parent 367049c commit 5a575bb99293837533dc357da891dac29a702616 @josh josh committed Mar 16, 2009
@@ -1,5 +1,5 @@
class MetalA < Rails::Rack::Metal
def self.call(env)
- [200, { "Content-Type" => "text/html"}, "Hi"]
+ [200, { "Content-Type" => "text/html"}, ["Hi"]]
end
end
@@ -1,5 +1,5 @@
class MetalB < Rails::Rack::Metal
def self.call(env)
- [200, { "Content-Type" => "text/html"}, "Hi"]
+ [200, { "Content-Type" => "text/html"}, ["Hi"]]
end
end
@@ -1,5 +1,5 @@
class LegacyRoutes < Rails::Rack::Metal
def self.call(env)
- [301, { "Location" => "http://example.com"}, nil]
+ [301, { "Location" => "http://example.com"}, []]
end
end
@@ -1,5 +1,5 @@
class FooMetal < Rails::Rack::Metal
def self.call(env)
- [200, { "Content-Type" => "text/html"}, "Hi"]
+ [200, { "Content-Type" => "text/html"}, ["Hi"]]
end
end
@@ -1,7 +1,7 @@
module Folder
class MetalA < Rails::Rack::Metal
def self.call(env)
- [200, { "Content-Type" => "text/html"}, "Hi"]
+ [200, { "Content-Type" => "text/html"}, ["Hi"]]
end
end
end
@@ -1,7 +1,7 @@
module Folder
class MetalB < Rails::Rack::Metal
def self.call(env)
- [200, { "Content-Type" => "text/html"}, "Hi"]
+ [200, { "Content-Type" => "text/html"}, ["Hi"]]
end
end
end

0 comments on commit 5a575bb

Please sign in to comment.