diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-27 22:52:50 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-27 22:52:50 +0200 |
| commit | 9a19a0494ef51cdac9a78e24d517ca48ba44c453 (patch) | |
| tree | 8eaae12d8047a40e29d3ea7ff3116b5c869e04bd /test/controllers/occurrences_controller_test.rb | |
| parent | 85a01e35274b8d4d4165a7b26bd7986e211246bb (diff) | |
| parent | 1853082fcd8c067390c246f9daa01a9b47387497 (diff) | |
Migration from Rails 2.3.5 to Rails 8.1 successful.
Merging dev branch.
Diffstat (limited to 'test/controllers/occurrences_controller_test.rb')
| -rw-r--r-- | test/controllers/occurrences_controller_test.rb | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/test/controllers/occurrences_controller_test.rb b/test/controllers/occurrences_controller_test.rb new file mode 100644 index 0000000..87f8bdb --- /dev/null +++ b/test/controllers/occurrences_controller_test.rb | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | require 'test_helper' | ||
| 2 | |||
| 3 | class OccurrencesControllerTest < ActionController::TestCase | ||
| 4 | # test "should get index" do | ||
| 5 | # get :index | ||
| 6 | # assert_response :success | ||
| 7 | # assert_not_nil assigns(:occurrences) | ||
| 8 | # end | ||
| 9 | # | ||
| 10 | # test "should get new" do | ||
| 11 | # get :new | ||
| 12 | # assert_response :success | ||
| 13 | # end | ||
| 14 | # | ||
| 15 | # test "should create occurrence" do | ||
| 16 | # assert_difference('Occurrence.count') do | ||
| 17 | # post :create, params: { :occurrence => { } } | ||
| 18 | # end | ||
| 19 | # | ||
| 20 | # assert_redirected_to occurrence_path(assigns(:occurrence)) | ||
| 21 | # end | ||
| 22 | # | ||
| 23 | # test "should show occurrence" do | ||
| 24 | # get :show, params: { :id => occurrences(:one).to_param } | ||
| 25 | # assert_response :success | ||
| 26 | # end | ||
| 27 | # | ||
| 28 | # test "should get edit" do | ||
| 29 | # get :edit, params: { :id => occurrences(:one).to_param } | ||
| 30 | # assert_response :success | ||
| 31 | # end | ||
| 32 | # | ||
| 33 | # test "should update occurrence" do | ||
| 34 | # put :update, params: { :id => occurrences(:one).to_param, :occurrence => { } } | ||
| 35 | # assert_redirected_to occurrence_path(assigns(:occurrence)) | ||
| 36 | # end | ||
| 37 | # | ||
| 38 | # test "should destroy occurrence" do | ||
| 39 | # assert_difference('Occurrence.count', -1) do | ||
| 40 | # delete params: { :destroy, :id => occurrences(:one).to_param } | ||
| 41 | # end | ||
| 42 | # | ||
| 43 | # assert_redirected_to occurrences_path | ||
| 44 | # end | ||
| 45 | end | ||
