Skip to content

Commit 5a575bb

Browse files
committed
update metal fixtures to be ruby 1.9 compat
1 parent 367049c commit 5a575bb

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class MetalA < Rails::Rack::Metal
22
def self.call(env)
3-
[200, { "Content-Type" => "text/html"}, "Hi"]
3+
[200, { "Content-Type" => "text/html"}, ["Hi"]]
44
end
55
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class MetalB < Rails::Rack::Metal
22
def self.call(env)
3-
[200, { "Content-Type" => "text/html"}, "Hi"]
3+
[200, { "Content-Type" => "text/html"}, ["Hi"]]
44
end
55
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class LegacyRoutes < Rails::Rack::Metal
22
def self.call(env)
3-
[301, { "Location" => "http://example.com/"}, nil]
3+
[301, { "Location" => "http://example.com/"}, []]
44
end
55
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class FooMetal < Rails::Rack::Metal
22
def self.call(env)
3-
[200, { "Content-Type" => "text/html"}, "Hi"]
3+
[200, { "Content-Type" => "text/html"}, ["Hi"]]
44
end
55
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Folder
22
class MetalA < Rails::Rack::Metal
33
def self.call(env)
4-
[200, { "Content-Type" => "text/html"}, "Hi"]
4+
[200, { "Content-Type" => "text/html"}, ["Hi"]]
55
end
66
end
77
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Folder
22
class MetalB < Rails::Rack::Metal
33
def self.call(env)
4-
[200, { "Content-Type" => "text/html"}, "Hi"]
4+
[200, { "Content-Type" => "text/html"}, ["Hi"]]
55
end
66
end
77
end

0 commit comments

Comments
 (0)