Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #518 from nashby/mock-response

remove MockResponse
  • Loading branch information...
commit 51f680a9a2233748669655d81c82f96bef775298 2 parents 5de46d3 + 42526ed
@carlosantoniodasilva carlosantoniodasilva authored
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,
Please sign in to comment.
Something went wrong with that request. Please try again.