spec/models/image_file_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

include is used at the top level. Use inside class or module.
Open

include ActionDispatch::TestProcess # module that provides #fixture_file_upload
Severity: Minor
Found in spec/models/image_file_spec.rb by rubocop

This cop checks that include, extend and prepend exists at the top level. Using these at the top level affects the behavior of Object. There will not be using include, extend and prepend at the top level. Let's use it inside class or module.

Example:

# bad
include M

class C
end

# bad
extend M

class C
end

# bad
prepend M

class C
end

# good
class C
  include M
end

# good
class C
  extend M
end

# good
class C
  prepend M
end

There are no issues that match your filters.

Category
Status