1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Wrap CGIResponse, LegacyRouteSet, Route, RouteSet and RouteLoading tests inside mocha block.

This commit is contained in:
Joshua Peek 2008-06-07 23:42:05 -05:00
parent ceb5b6dbb1
commit d5539958a8
2 changed files with 1751 additions and 1778 deletions

View file

@ -115,7 +115,8 @@ class CgiRequestNeedsRewoundTest < BaseCgiTest
end
end
class CgiResponseTest < BaseCgiTest
uses_mocha 'CGI Response' do
class CgiResponseTest < BaseCgiTest
def setup
super
@fake_cgi.expects(:header).returns("HTTP/1.0 200 OK\nContent-Type: text/html\n")
@ -146,4 +147,5 @@ class CgiResponseTest < BaseCgiTest
@response.out(@output)
assert_equal "HTTP/1.0 200 OK\nContent-Type: text/html\n01234", @output.string
end
end
end

File diff suppressed because it is too large Load diff