diff options
author | DavisLWebb <davislwebb@ymail.com> | 2014-03-01 20:24:43 -0500 |
---|---|---|
committer | DavisLWebb <davislwebb@ymail.com> | 2014-03-01 20:24:43 -0500 |
commit | 11be92e4bac671852fd03922049ca592ae4c9f4e (patch) | |
tree | a70875391bbf07448f816800afd6296679fc4c06 /test/controllers/alerts_controller_test.rb | |
parent | 2eb242f3e5b1f1ab66d84556cabcad965fe387aa (diff) |
changed the gemfile to include rspecy testing and a security name i cant remember the name of
Diffstat (limited to 'test/controllers/alerts_controller_test.rb')
-rw-r--r-- | test/controllers/alerts_controller_test.rb | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/test/controllers/alerts_controller_test.rb b/test/controllers/alerts_controller_test.rb deleted file mode 100644 index 4a5d911..0000000 --- a/test/controllers/alerts_controller_test.rb +++ /dev/null @@ -1,49 +0,0 @@ -require 'test_helper' - -class AlertsControllerTest < ActionController::TestCase - setup do - @alert = alerts(:one) - end - - test "should get index" do - get :index - assert_response :success - assert_not_nil assigns(:alerts) - end - - test "should get new" do - get :new - assert_response :success - end - - test "should create alert" do - assert_difference('Alert.count') do - post :create, alert: { author_id: @alert.author_id, message: @alert.message } - end - - assert_redirected_to alert_path(assigns(:alert)) - end - - test "should show alert" do - get :show, id: @alert - assert_response :success - end - - test "should get edit" do - get :edit, id: @alert - assert_response :success - end - - test "should update alert" do - patch :update, id: @alert, alert: { author_id: @alert.author_id, message: @alert.message } - assert_redirected_to alert_path(assigns(:alert)) - end - - test "should destroy alert" do - assert_difference('Alert.count', -1) do - delete :destroy, id: @alert - end - - assert_redirected_to alerts_path - end -end |