|
26 | 26 | expect(subject).to eq( |
27 | 27 | [ |
28 | 28 | { |
| 29 | + code: 'unprocessable_entity', |
| 30 | + status: '422', |
29 | 31 | title: "Validation Error", |
30 | 32 | detail: "Username can't be blank", |
31 | 33 | source: { pointer: '/data/attributes/username' }, |
|
46 | 48 | expect(subject).to eq( |
47 | 49 | [ |
48 | 50 | { |
| 51 | + code: 'unprocessable_entity', |
| 52 | + status: '422', |
49 | 53 | title: 'Validation Error', |
50 | 54 | detail: 'Pets is invalid', |
51 | 55 | source: { pointer: '/data/relationships/pets' }, |
|
65 | 69 | expect(subject).to eq( |
66 | 70 | [ |
67 | 71 | { |
| 72 | + code: 'unprocessable_entity', |
| 73 | + status: '422', |
68 | 74 | title: 'Validation Error', |
69 | 75 | detail: 'Pets is invalid', |
70 | 76 | source: { pointer: '/data/attributes/pets' }, |
|
83 | 89 | expect(subject).to eq( |
84 | 90 | [ |
85 | 91 | { |
| 92 | + code: 'unprocessable_entity', |
| 93 | + status: '422', |
86 | 94 | title: 'Validation Error', |
87 | 95 | detail: 'Pets is invalid', |
88 | 96 | source: { pointer: '/data/relationships/pets' }, |
|
106 | 114 | expect(subject).to eq( |
107 | 115 | [ |
108 | 116 | { |
| 117 | + code: 'unprocessable_entity', |
| 118 | + status: '422', |
109 | 119 | title: 'Validation Error', |
110 | 120 | detail: 'Foo.bar is invalid', |
111 | 121 | source: { pointer: '/data/relationships/foo.bar' }, |
|
0 commit comments