|
8 | 8 | +-----------------------|------------|----------------+
|
9 | 9 | | Name | Total Deps | 1st Level Deps |
|
10 | 10 | +-----------------------|------------|----------------+
|
| 11 | +| simplecov-console | 7 | 3 | |
| 12 | +| codecov | 4 | 1 | |
| 13 | +| rails_stats | 4 | 2 | |
| 14 | +| simplecov | 3 | 3 | |
| 15 | +| minitest-around | 1 | 1 | |
| 16 | +| bundler | 0 | 0 | |
| 17 | +| byebug | 0 | 0 | |
| 18 | +| minitest | 0 | 0 | |
| 19 | +| minitest-spec-context | 0 | 0 | |
| 20 | ++-----------------------|------------|----------------+ |
| 21 | + \n Declared Gems 9 \n Total Gems 17 \n Unpinned Versions 8 \n Github Refs 0 \n \n+----------------------+---------+---------+---------+---------+-----+-------+ |
| 22 | +| Name | Lines | LOC | Classes | Methods | M/C | LOC/M | |
| 23 | ++----------------------+---------+---------+---------+---------+-----+-------+ |
| 24 | +| Channels | 8 | 8 | 2 | 0 | 0 | 0 | |
| 25 | +| Configuration | 417 | 111 | 1 | 0 | 0 | 0 | |
| 26 | +| Controllers | 7 | 6 | 1 | 1 | 1 | 4 | |
| 27 | +| Helpers | 3 | 3 | 0 | 0 | 0 | 0 | |
| 28 | +| Javascripts | 27 | 7 | 0 | 0 | 0 | 0 | |
| 29 | +| Jobs | 7 | 2 | 1 | 0 | 0 | 0 | |
| 30 | +| Mailers | 4 | 4 | 1 | 0 | 0 | 0 | |
| 31 | +| Models | 3 | 3 | 1 | 0 | 0 | 0 | |
| 32 | ++----------------------+---------+---------+---------+---------+-----+-------+ |
| 33 | +| Code | 476 | 144 | 7 | 1 | 0 | 142 | |
| 34 | +| Tests | 0 | 0 | 0 | 0 | 0 | 0 | |
| 35 | +| Total | 476 | 144 | 7 | 1 | 0 | 142 | |
| 36 | ++----------------------+---------+---------+---------+---------+-----+-------+ |
| 37 | + Code LOC: 144 Test LOC: 0 Code to Test Ratio: 1:0.0 |
| 38 | +
|
| 39 | + EOS |
| 40 | + |
| 41 | + TABLE_RUBY_2_4 = <<~EOS |
| 42 | ++-----------------------|------------|----------------+ |
| 43 | +| Name | Total Deps | 1st Level Deps | |
| 44 | ++-----------------------|------------|----------------+ |
11 | 45 | | simplecov-console | 6 | 3 |
|
12 | 46 | | rails_stats | 4 | 2 |
|
13 | 47 | | codecov | 3 | 1 |
|
|
45 | 79 | RailsStats::CodeStatistics.new(root_directory).to_s
|
46 | 80 | end
|
47 | 81 |
|
48 |
| - assert_equal TABLE, out |
| 82 | + expectation = if RUBY_VERSION < "2.5.0" |
| 83 | + TABLE_RUBY_2_4 |
| 84 | + else |
| 85 | + TABLE |
| 86 | + end |
| 87 | + |
| 88 | + assert_equal expectation, out |
49 | 89 | end
|
50 | 90 | end
|
51 | 91 | end
|
0 commit comments