@@ -57,14 +57,14 @@ def test_include_multiple_posts_and_linked
57
57
id : "1" ,
58
58
body : "ZOMG A COMMENT" ,
59
59
links : {
60
- post : { linkage : { type : "post " , id : "1" } } ,
60
+ post : { linkage : { type : "posts " , id : "1" } } ,
61
61
author : { linkage : nil }
62
62
}
63
63
} , {
64
64
id : "2" ,
65
65
body : "ZOMG ANOTHER COMMENT" ,
66
66
links : {
67
- post : { linkage : { type : "post " , id : "1" } } ,
67
+ post : { linkage : { type : "posts " , id : "1" } } ,
68
68
author : { linkage : nil }
69
69
}
70
70
}
@@ -76,15 +76,15 @@ def test_include_multiple_posts_and_linked
76
76
links : {
77
77
posts : { linkage : [ { type : "posts" , id : "1" } , { type : "posts" , id : "3" } ] } ,
78
78
roles : { linkage : [ ] } ,
79
- bio : { linkage : { type : "bio " , id : "1" } }
79
+ bio : { linkage : { type : "bios " , id : "1" } }
80
80
}
81
81
} , {
82
82
id : "2" ,
83
83
name : "Tenderlove" ,
84
84
links : {
85
85
posts : { linkage : [ { type : "posts" , id :"2" } ] } ,
86
86
roles : { linkage : [ ] } ,
87
- bio : { linkage : { type : "bio " , id : "2" } }
87
+ bio : { linkage : { type : "bios " , id : "2" } }
88
88
}
89
89
}
90
90
] ,
@@ -93,13 +93,13 @@ def test_include_multiple_posts_and_linked
93
93
id : "1" ,
94
94
content : "AMS Contributor" ,
95
95
links : {
96
- author : { linkage : { type : "author " , id : "1" } }
96
+ author : { linkage : { type : "authors " , id : "1" } }
97
97
}
98
98
} , {
99
99
id : "2" ,
100
100
content : "Rails Contributor" ,
101
101
links : {
102
- author : { linkage : { type : "author " , id : "2" } }
102
+ author : { linkage : { type : "authors " , id : "2" } }
103
103
}
104
104
}
105
105
]
@@ -111,8 +111,8 @@ def test_include_multiple_posts_and_linked
111
111
body : "Hello, world!!" ,
112
112
links : {
113
113
comments : { linkage : [ { type : "comments" , id : '1' } , { type : "comments" , id : '2' } ] } ,
114
- blog : { linkage : { type : "blog " , id : "999" } } ,
115
- author : { linkage : { type : "author " , id : "1" } }
114
+ blog : { linkage : { type : "blogs " , id : "999" } } ,
115
+ author : { linkage : { type : "authors " , id : "1" } }
116
116
}
117
117
} ,
118
118
{
@@ -121,8 +121,8 @@ def test_include_multiple_posts_and_linked
121
121
body : "Body" ,
122
122
links : {
123
123
comments : { linkage : [ ] } ,
124
- blog : { linkage : { type : "blog " , id : "999" } } ,
125
- author : { linkage : { type : "author " , id : "2" } }
124
+ blog : { linkage : { type : "blogs " , id : "999" } } ,
125
+ author : { linkage : { type : "authors " , id : "2" } }
126
126
}
127
127
}
128
128
]
@@ -150,7 +150,7 @@ def test_include_multiple_posts_and_linked
150
150
links : {
151
151
posts : { linkage : [ { type : "posts" , id : "10" } , { type : "posts" , id : "30" } ] } ,
152
152
roles : { linkage : [ ] } ,
153
- bio : { linkage : { type : "bio " , id : "1" } }
153
+ bio : { linkage : { type : "bios " , id : "1" } }
154
154
}
155
155
}
156
156
] ,
@@ -161,17 +161,17 @@ def test_include_multiple_posts_and_linked
161
161
body : "Hello, world!!" ,
162
162
links : {
163
163
comments : { linkage : [ { type : "comments" , id : "1" } , { type : "comments" , id : "2" } ] } ,
164
- blog : { linkage : { type : "blog " , id : "999" } } ,
165
- author : { linkage : { type : "author " , id : "1" } }
164
+ blog : { linkage : { type : "blogs " , id : "999" } } ,
165
+ author : { linkage : { type : "authors " , id : "1" } }
166
166
}
167
167
} , {
168
168
id : "30" ,
169
169
title : "Yet Another Post" ,
170
170
body : "Body" ,
171
171
links : {
172
172
comments : { linkage : [ ] } ,
173
- blog : { linkage : { type : "blog " , id : "999" } } ,
174
- author : { linkage : { type : "author " , id : "1" } }
173
+ blog : { linkage : { type : "blogs " , id : "999" } } ,
174
+ author : { linkage : { type : "authors " , id : "1" } }
175
175
}
176
176
}
177
177
]
0 commit comments