@@ -10,19 +10,19 @@ module WithVeryLongName
10
10
module AnotherGroupingModule
11
11
class Class1
12
12
class Entity < Grape ::Entity
13
- expose :one_thing
13
+ expose :first_thing
14
14
end
15
15
end
16
16
17
17
class Class2
18
18
class Entities < Grape ::Entity
19
- expose :one_thing
19
+ expose :second_thing
20
20
end
21
21
end
22
22
23
23
class Class3
24
24
class Entity < Grape ::Entity
25
- expose :another_thing
25
+ expose :third_thing
26
26
27
27
def self . entity_name
28
28
'FooKlass'
@@ -32,13 +32,29 @@ def self.entity_name
32
32
33
33
class Class4
34
34
class FourthEntity < Grape ::Entity
35
- expose :another_thing
35
+ expose :fourth_thing
36
36
end
37
37
end
38
38
39
39
class Class5
40
40
class FithEntity < Class4 ::FourthEntity
41
- expose :another_thing
41
+ expose :fith_thing
42
+ end
43
+ end
44
+
45
+ class Class6
46
+ class SixthEntity < Grape ::Entity
47
+ expose :sixth_thing
48
+
49
+ def self . entity_name
50
+ 'BarKlass'
51
+ end
52
+ end
53
+ end
54
+
55
+ class Class7
56
+ class SeventhEntity < Class6 ::SixthEntity
57
+ expose :seventh_thing
42
58
end
43
59
end
44
60
end
@@ -51,7 +67,9 @@ class NameApi < Grape::API
51
67
DummyEntities ::WithVeryLongName ::AnotherGroupingModule ::Class2 ::Entities ,
52
68
DummyEntities ::WithVeryLongName ::AnotherGroupingModule ::Class3 ::Entity ,
53
69
DummyEntities ::WithVeryLongName ::AnotherGroupingModule ::Class4 ::FourthEntity ,
54
- DummyEntities ::WithVeryLongName ::AnotherGroupingModule ::Class5 ::FithEntity
70
+ DummyEntities ::WithVeryLongName ::AnotherGroupingModule ::Class5 ::FithEntity ,
71
+ DummyEntities ::WithVeryLongName ::AnotherGroupingModule ::Class6 ::SixthEntity ,
72
+ DummyEntities ::WithVeryLongName ::AnotherGroupingModule ::Class7 ::SeventhEntity
55
73
]
56
74
end
57
75
end
@@ -69,4 +87,6 @@ class NameApi < Grape::API
69
87
specify { expect ( subject ) . to include 'FooKlass' }
70
88
specify { expect ( subject ) . to include 'FourthEntity' }
71
89
specify { expect ( subject ) . to include 'FithEntity' }
90
+ specify { expect ( subject ) . to include 'BarKlass' }
91
+ specify { expect ( subject ) . to include 'SeventhEntity' }
72
92
end
0 commit comments