Very basic tests for /collections, /nodes, /pipeline_invocations
authorWard Vandewege <ward@clinicalfuture.com>
Mon, 21 Jan 2013 15:23:00 +0000 (10:23 -0500)
committerWard Vandewege <ward@clinicalfuture.com>
Mon, 21 Jan 2013 15:23:00 +0000 (10:23 -0500)
test/functional/collections_controller_test.rb
test/functional/nodes_controller_test.rb
test/functional/pipeline_invocations_controller_test.rb

index b3fa9ae64f07ac935e612905fcb2b8c68fcbcefe..6002da8e6dbac7166547df2c651ddb1885455728 100644 (file)
@@ -1,49 +1,11 @@
 require 'test_helper'
 
 class CollectionsControllerTest < ActionController::TestCase
-  setup do
-    @collection = collections(:one)
-  end
 
   test "should get index" do
     get :index
     assert_response :success
-    assert_not_nil assigns(:collections)
+    assert_not_nil assigns(:objects)
   end
 
-  test "should get new" do
-    get :new
-    assert_response :success
-  end
-
-  test "should create collection" do
-    assert_difference('Collection.count') do
-      post :create, collection: @collection.attributes
-    end
-
-    assert_redirected_to collection_path(assigns(:collection))
-  end
-
-  test "should show collection" do
-    get :show, id: @collection.to_param
-    assert_response :success
-  end
-
-  test "should get edit" do
-    get :edit, id: @collection.to_param
-    assert_response :success
-  end
-
-  test "should update collection" do
-    put :update, id: @collection.to_param, collection: @collection.attributes
-    assert_redirected_to collection_path(assigns(:collection))
-  end
-
-  test "should destroy collection" do
-    assert_difference('Collection.count', -1) do
-      delete :destroy, id: @collection.to_param
-    end
-
-    assert_redirected_to collections_path
-  end
 end
index 778c092e881722fc4ca69b1a6c9427e93afda759..bba116e08a87501c09d9114a5d43bfa32de5d38d 100644 (file)
@@ -1,7 +1,11 @@
 require 'test_helper'
 
 class NodesControllerTest < ActionController::TestCase
-  # test "the truth" do
-  #   assert true
-  # end
+
+  test "should get index" do
+    get :index
+    assert_response :success
+    assert_not_nil assigns(:objects)
+  end
+
 end
index 3d22b75b9468ef300c2abb5c2bc456b8b14001b9..10dfae1081702082b58fb47a2bda8a707cc75036 100644 (file)
@@ -1,7 +1,11 @@
 require 'test_helper'
 
 class PipelineInvocationsControllerTest < ActionController::TestCase
-  # test "the truth" do
-  #   assert true
-  # end
+
+  test "should get index" do
+    get :index
+    assert_response :success
+    assert_not_nil assigns(:objects)
+  end
+
 end