Pattern: Opening module and defining spec within
Issue: -
Avoid opening modules and defining specs within them.
# bad
module MyModule
RSpec.describe MyClass do
# ...
end
end
# good
RSpec.describe MyModule::MyClass do
# ...
end
Pattern: Opening module and defining spec within
Issue: -
Avoid opening modules and defining specs within them.
# bad
module MyModule
RSpec.describe MyClass do
# ...
end
end
# good
RSpec.describe MyModule::MyClass do
# ...
end