blob: 87f8bdb6d20d49d7f582bd13c81b2348d149fbfd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
require 'test_helper'
class OccurrencesControllerTest < ActionController::TestCase
# test "should get index" do
# get :index
# assert_response :success
# assert_not_nil assigns(:occurrences)
# end
#
# test "should get new" do
# get :new
# assert_response :success
# end
#
# test "should create occurrence" do
# assert_difference('Occurrence.count') do
# post :create, params: { :occurrence => { } }
# end
#
# assert_redirected_to occurrence_path(assigns(:occurrence))
# end
#
# test "should show occurrence" do
# get :show, params: { :id => occurrences(:one).to_param }
# assert_response :success
# end
#
# test "should get edit" do
# get :edit, params: { :id => occurrences(:one).to_param }
# assert_response :success
# end
#
# test "should update occurrence" do
# put :update, params: { :id => occurrences(:one).to_param, :occurrence => { } }
# assert_redirected_to occurrence_path(assigns(:occurrence))
# end
#
# test "should destroy occurrence" do
# assert_difference('Occurrence.count', -1) do
# delete params: { :destroy, :id => occurrences(:one).to_param }
# end
#
# assert_redirected_to occurrences_path
# end
end
|