Skip to content
Browse files

remove MockResponse

  • Loading branch information...
1 parent dbd8038 commit 42526ed53657c0d87a678b57924910097828790c @nashby committed Mar 17, 2012
Showing with 0 additions and 19 deletions.
  1. +0 −14 test/support/mock_response.rb
  2. +0 −5 test/test_helper.rb
View
14 test/support/mock_response.rb
@@ -1,14 +0,0 @@
-class MockResponse
-
- def initialize(test_case)
- @test_case = test_case
- end
-
- def content_type
- 'text/html'
- end
-
- def body
- @test_case.send :output_buffer
- end
-end
View
5 test/test_helper.rb
@@ -39,17 +39,12 @@ class ActionView::TestCase
include SimpleForm::ActionViewExtensions::FormHelper
setup :set_controller
- setup :set_response
setup :setup_new_user
def set_controller
@controller = MockController.new
end
- def set_response
- @response = MockResponse.new(self)
- end
-
def setup_new_user(options={})
@user = User.new({
:id => 1,

0 comments on commit 42526ed

Please sign in to comment.
Something went wrong with that request. Please try again.