Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Changing test case to use the action controller test case.

Ensuring that the test environment is used.
  • Loading branch information...
commit 738e1411e20e0caea9889179643a86a8e365629d 1 parent 52d52ed
Mark Catley authored
7 test/assert_select_parent_test.rb
... ... @@ -1,8 +1,9 @@
  1 +ENV["RAILS_ENV"] = "test"
1 2 require File.dirname(__FILE__) + '/../../../../config/environment'
2 3 require 'test/unit'
3 4 require 'test_help'
4 5
5   -class AssertSelectParentTest < Test::Unit::TestCase
  6 +class AssertSelectParentTest < ActionController::TestCase
6 7 class AssertSelectParentController < ActionController::Base
7 8 def response_with=(content)
8 9 @content = content
@@ -108,7 +109,7 @@ def do_test_with_text(text)
108 109 require 'test/unit'
109 110 require 'test_help'
110 111
111   -class AssertSelectParentTest < Test::Unit::TestCase
  112 +class AssertSelectParentTest < ActionController::TestCase
112 113 class AssertSelectParentController < ActionController::Base
113 114 def response_with=(content)
114 115 @content = content
@@ -214,7 +215,7 @@ def do_test_with_text(text)
214 215 require 'test/unit'
215 216 require 'test_help'
216 217
217   -class AssertSelectParentTest < Test::Unit::TestCase
  218 +class AssertSelectParentTest < ActionController::TestCase
218 219 class AssertSelectParentController < ActionController::Base
219 220 def response_with=(content)
220 221 @content = content
3  test/responds_to_parent_test.rb
... ... @@ -1,3 +1,4 @@
  1 +ENV["RAILS_ENV"] = "test"
1 2 require File.dirname(__FILE__) + '/../../../../config/environment'
2 3 require 'test/unit'
3 4 require 'test_help'
@@ -58,7 +59,7 @@ def rescue_action(e)
58 59 end
59 60 end
60 61
61   -class RespondsToParentTest < Test::Unit::TestCase
  62 +class RespondsToParentTest < ActionController::TestCase
62 63 def setup
63 64 @controller = IFrameController.new
64 65 @request = ActionController::TestRequest.new

0 comments on commit 738e141

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