Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
B-Rass committed Feb 5, 2025
1 parent 08009a7 commit 18940aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/controllers/disks_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class DisksControllerTest < ActionController::TestCase
post :create, params: { disk: { disk_type_id: @disk.disk_type_id, quantity: @disk.quantity, server_id: @disk.server_id } }
end

assert_redirected_to server_path(@disk.server_id)
assert_redirected_to server_path(@disk.server)
end

test "should show disk" do
Expand All @@ -39,7 +39,7 @@ class DisksControllerTest < ActionController::TestCase

test "should update disk" do
patch :update, params: { id: @disk, disk: { disk_type_id: @disk.disk_type_id, quantity: @disk.quantity, server_id: @disk.server_id } }
assert_redirected_to server_path(@disk.server_id)
assert_redirected_to server_path(@disk.server)
end

test "should destroy disk" do
Expand Down
4 changes: 2 additions & 2 deletions test/controllers/memory_components_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class MemoryComponentsControllerTest < ActionController::TestCase
post :create, params: { memory_component: { memory_type_id: @memory_component.memory_type_id, quantity: @memory_component.quantity, server_id: @memory_component.server_id } }
end

assert_redirected_to server_path(@memory_component.server_id)
assert_redirected_to server_path(@memory_component.server)
end

test "should show memory_component" do
Expand All @@ -39,7 +39,7 @@ class MemoryComponentsControllerTest < ActionController::TestCase

test "should update memory_component" do
patch :update, params: { id: @memory_component, memory_component: { memory_type_id: @memory_component.memory_type_id, quantity: @memory_component.quantity, server_id: @memory_component.server_id } }
assert_redirected_to server_path(@memory_component.server_id)
assert_redirected_to server_path(@memory_component.server)
end

test "should destroy memory_component" do
Expand Down

0 comments on commit 18940aa

Please sign in to comment.