|
36 | 36 | describe 'one-level deep has_many relationship' do
|
37 | 37 | let(:include_query) { 'comments' }
|
38 | 38 |
|
39 |
| - context 'unauthorized for include_has_many_resource for Comment', pending: 'Compatibility with JR 0.10' do |
| 39 | + context 'unauthorized for include_has_many_resource for Comment' do |
40 | 40 | before do
|
41 | 41 | disallow_operation(
|
42 | 42 | 'include_has_many_resource',
|
|
73 | 73 | describe 'one-level deep has_one relationship' do
|
74 | 74 | let(:include_query) { 'author' }
|
75 | 75 |
|
76 |
| - context 'unauthorized for include_has_one_resource for article.author', pending: 'Compatibility with JR 0.10' do |
| 76 | + context 'unauthorized for include_has_one_resource for article.author' do |
77 | 77 | before do
|
78 | 78 | disallow_operation(
|
79 | 79 | 'include_has_one_resource',
|
|
108 | 108 | describe 'multiple one-level deep relationships' do
|
109 | 109 | let(:include_query) { 'author,comments' }
|
110 | 110 |
|
111 |
| - context 'unauthorized for include_has_one_resource for article.author', pending: 'Compatibility with JR 0.10' do |
| 111 | + context 'unauthorized for include_has_one_resource for article.author' do |
112 | 112 | before do
|
113 | 113 | disallow_operation(
|
114 | 114 | 'include_has_one_resource',
|
|
121 | 121 | it { is_expected.to be_forbidden }
|
122 | 122 | end
|
123 | 123 |
|
124 |
| - context 'unauthorized for include_has_many_resource for Comment', pending: 'Compatibility with JR 0.10' do |
| 124 | + context 'unauthorized for include_has_many_resource for Comment' do |
125 | 125 | before do
|
126 | 126 | allow_operation('include_has_one_resource', source_record: an_instance_of(Article), related_record: an_instance_of(User), authorizer: chained_authorizer)
|
127 | 127 | disallow_operation('include_has_many_resource', source_record: an_instance_of(Article), record_class: Comment, authorizer: chained_authorizer)
|
|
156 | 156 | describe 'a deep relationship' do
|
157 | 157 | let(:include_query) { 'author.comments' }
|
158 | 158 |
|
159 |
| - context 'unauthorized for first relationship', pending: 'Compatibility with JR 0.10' do |
| 159 | + context 'unauthorized for first relationship' do |
160 | 160 | before do
|
161 | 161 | disallow_operation(
|
162 | 162 | 'include_has_one_resource',
|
|
178 | 178 | it { is_expected.to be_forbidden }
|
179 | 179 | end
|
180 | 180 |
|
181 |
| - context 'authorized for second relationship' do |
| 181 | + context 'authorized for second relationship', pending: 'Compatibility with JR 0.10' do |
182 | 182 | before { allow_operation('include_has_many_resource', source_record: an_instance_of(User), record_class: Comment, authorizer: chained_authorizer) }
|
183 | 183 |
|
184 | 184 | it { is_expected.to be_successful }
|
|
202 | 202 | end
|
203 | 203 |
|
204 | 204 | describe 'a deep relationship with empty relations' do
|
205 |
| - context 'first level has_one is nil' do |
| 205 | + context 'first level has_one is nil', pending: 'Compatibility with JR 0.10' do |
206 | 206 | let(:include_query) { 'non-existing-article.comments' }
|
207 | 207 |
|
208 | 208 | it { is_expected.to be_successful }
|
|
211 | 211 | context 'first level has_many is empty' do
|
212 | 212 | let(:include_query) { 'empty-articles.comments' }
|
213 | 213 |
|
214 |
| - context 'unauthorized for first relationship', pending: 'Compatibility with JR 0.10' do |
| 214 | + context 'unauthorized for first relationship' do |
215 | 215 | before { disallow_operation('include_has_many_resource', source_record: an_instance_of(Article), record_class: Article, authorizer: chained_authorizer) }
|
216 | 216 |
|
217 | 217 | it { is_expected.to be_forbidden }
|
218 | 218 | end
|
219 | 219 |
|
220 |
| - context 'authorized for first relationship' do |
| 220 | + context 'authorized for first relationship', pending: 'Compatibility with JR 0.10' do |
221 | 221 | before { allow_operation('include_has_many_resource', source_record: an_instance_of(Article), record_class: Article, authorizer: chained_authorizer) }
|
222 | 222 |
|
223 | 223 | it { is_expected.to be_successful }
|
|
284 | 284 | context 'authorized for first relationship' do
|
285 | 285 | before { allow_operation('include_has_one_resource', source_record: an_instance_of(Article), related_record: an_instance_of(User), authorizer: chained_authorizer) }
|
286 | 286 |
|
287 |
| - context 'authorized for second relationship' do |
| 287 | + context 'authorized for second relationship', pending: 'Compatibility with JR 0.10' do |
288 | 288 | before { allow_operation('include_has_many_resource', source_record: an_instance_of(User), record_class: Comment, authorizer: chained_authorizer) }
|
289 | 289 |
|
290 | 290 | it { is_expected.to be_successful }
|
|
0 commit comments