Displaying 2 results from an estimated 2 matches for "test_show".
Did you mean:
ext_show
2005 Mar 06
3
question about testing
...ates DRY, having so many identical "assert_redirected_to"
calls repeated. I want to put them in a loop, but i''m not entirely
sure how to go about doing it...
This is my first attempt at putting it in a loop:
def test_loggedout
@request.session["user"] = nil
test_show
[
process(:index),
process(:list),
process(:new),
process(:create, ''page'' => {"article" => "foo", "title" => "bar" }),
process(:edit, ''id'' => 1),
process(:update, '...
2009 May 18
0
[PATCH server] fixed functional tests after recent controller refactoring and managed node controller fixes.
...onal/vm_controller_test.rb
@@ -32,9 +32,10 @@ class VmControllerTest < Test::Unit::TestCase
@response = ActionController::TestResponse.new
@vm_id = vms(:production_httpd_vm).id
- @default_pool = pools(:default)
+ @vm_pool = pools(:corp_com_production_vmpool)
end
+
def test_show
get :show, :id => @vm_id
@@ -46,23 +47,22 @@ class VmControllerTest < Test::Unit::TestCase
end
def test_new
- get :new, :hardware_pool_id => @default_pool.id, :format => "json"
- json = ActiveSupport::JSON.decode(@response.body)
- assert_equal 'You...