File: minitest_nested_classes_and_modules.rb

package info (click to toggle)
ruby-ruby-lsp 0.26.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 27,676 kB
  • sloc: ruby: 35,294; javascript: 29; sh: 7; makefile: 4
file content (42 lines) | stat: -rw-r--r-- 628 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
module Foo
  class FooTest < Minitest::Test
    def test_foo; end

    def test_foo_2; end
  end

  module Bar
    class BarTest < Minitest::Test
      def test_bar; end

      module Baz
        class BazTest < Minitest::Test
          def test_baz; end

          def test_baz_2; end
        end
      end
    end
  end

  class Baz
    class BazTest < Minitest::Test
      def test_baz; end
    end
  end
end

module Foo::Bar
  class FooBarTest < Minitest::Test
    def test_foo_bar; end

    def test_foo_bar_2; end
  end

  module FooBar
  end

  class FooBar::Test < Minitest::Test
    def test_foo_bar_baz; end
  end
end