Displaying 2 results from an estimated 2 matches for "hostcontrollertest".
Did you mean:
host_controller_test
2009 Jun 16
1
[PATCH server] Fix errors in controller tests.
...rb
index caf198d..dc9891c 100644
--- a/src/test/functional/host_controller_test.rb
+++ b/src/test/functional/host_controller_test.rb
@@ -23,7 +23,7 @@ require 'host_controller'
# Re-raise errors caught by the controller.
class HostController; def rescue_action(e) raise e end; end
-class HostControllerTest < Test::Unit::TestCase
+class HostControllerTest < ActionController::TestCase
fixtures :hosts, :pools, :privileges, :roles, :permissions
def setup
diff --git a/src/test/functional/nic_controller_test.rb b/src/test/functional/nic_controller_test.rb
index 59183ba..60b5670 100644
--- a/s...
2009 May 18
0
[PATCH server] fixed functional tests after recent controller refactoring and managed node controller fixes.
...anged, 36 insertions(+), 79 deletions(-)
diff --git a/src/test/functional/host_controller_test.rb b/src/test/functional/host_controller_test.rb
index 497fe5a..caf198d 100644
--- a/src/test/functional/host_controller_test.rb
+++ b/src/test/functional/host_controller_test.rb
@@ -59,47 +59,6 @@ class HostControllerTest < Test::Unit::TestCase
assert assigns(:host).valid?
end
- def test_new
- get :new, :hardware_pool_id => pools(:default).id
-
- assert_response :redirect
- assert_redirected_to :controller => 'hardware', :action => 'show', :id => pools(:default).id...