Skip to content

Commit

Permalink
Update tests now that the outer "activity" div is gone
Browse files Browse the repository at this point in the history
  • Loading branch information
fbacall committed Dec 10, 2024
1 parent c5102a7 commit 9e46819
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/controllers/collections_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ class CollectionsControllerTest < ActionController::TestCase

get :index, params: { collection_id: @collection }, xhr: true

assert_select '.activity', count: 4 # +1 because they are wrapped in a .activity div for some reason...
assert_select '.activity', count: 3

@controller = old_controller
end
Expand Down
2 changes: 1 addition & 1 deletion test/controllers/learning_path_topics_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ class LearningPathTopicsControllerTest < ActionController::TestCase

get :index, params: { learning_path_topic_id: @learning_path_topic }, xhr: true

assert_select '.activity', count: 4 # +1 because they are wrapped in a .activity div for some reason...
assert_select '.activity', count: 3

@controller = old_controller
end
Expand Down
2 changes: 1 addition & 1 deletion test/controllers/learning_paths_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ class LearningPathsControllerTest < ActionController::TestCase

get :index, params: { learning_path_id: @learning_path }, xhr: true

assert_select '.activity', count: 5 # +1 because they are wrapped in a .activity div for some reason...
assert_select '.activity', count: 4

@controller = old_controller
end
Expand Down
4 changes: 2 additions & 2 deletions test/controllers/materials_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ class MaterialsControllerTest < ActionController::TestCase

get :index, params: { material_id: @material }, xhr: true

assert_select '.activity', count: 6 # +1 because they are wrapped in a .activity div for some reason...
assert_select '.activity', count: 5

@controller = old_controller
end
Expand Down Expand Up @@ -1013,7 +1013,7 @@ class MaterialsControllerTest < ActionController::TestCase

get :index, params: { material_id: @material }, xhr: true

assert_select '.activity', count: 3 # +1 because they are wrapped in a .activity div for some reason...
assert_select '.activity', count: 2

@controller = old_controller
end
Expand Down

0 comments on commit 9e46819

Please sign in to comment.