We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77ab3a5 commit 3af8abfCopy full SHA for 3af8abf
spec/controllers/active_admin_spec.rb
@@ -3,7 +3,9 @@
3
ActiveAdmin.application.namespaces[:admin].resources.each do |resource|
4
# resource_name will be empty for custom pages not backed by models
5
resource_name = resource.resource_name.instance_variable_get(:@klass)&.name&.underscore
6
- next if ["quality_control"].include?(resource_name)
+ exclude_resources = ["quality_control"]
7
+ exclude_resources += ["active_admin/comment"] unless ActiveAdmin.application.comments
8
+ next if exclude_resources.include?(resource_name)
9
10
describe resource.controller, type: :controller do
11
let(:admin) { create(:admin) }
0 commit comments