Skip to content

Commit

Permalink
Prove the specs pass if we retain the indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
markburns committed Jun 21, 2021
1 parent 6a42d56 commit bd2f4d1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions spec/rubocop/cop/style/class_and_module_children_spec.rb
Expand Up @@ -278,8 +278,8 @@ class Xyzzy

expect_correction(<<~RUBY)
module Foo::Bar::Baz::Qux::Quux::Quuz::Corge::Grault::Garply::Waldo::Fred::Plugh
class Xyzzy
end
class Xyzzy
end
end
RUBY
end
Expand Down Expand Up @@ -417,13 +417,13 @@ def method_example

expect_correction(<<~RUBY)
module FooModule::BarModule
def method_example
end
def method_example
end
end
RUBY
end

pending 'correctly indents heavily nested children' do
it 'correctly indents heavily nested children' do
expect_offense(<<~RUBY)
module FooModule
^^^^^^^^^ Use compact module/class definition instead of nested style.
Expand All @@ -442,10 +442,10 @@ def method_example

expect_correction(<<~RUBY)
module FooModule::BarModule::BazModule::QuxModule
CONST = 1
CONST = 1
def method_example
end
def method_example
end
end
RUBY
end
Expand Down

0 comments on commit bd2f4d1

Please sign in to comment.