|
45 | 45 | end
|
46 | 46 |
|
47 | 47 | context 'with invalid asset' do
|
48 |
| - it 'returns status 404, response body includes error' do |
| 48 | + it 'returns status 400, response body includes error' do |
49 | 49 | response = blockfrost_mainnet.get_specific_asset(invalid_asset)
|
50 |
| - expect(response[:status]).to eq(404) |
| 50 | + expect(response[:status]).to eq(400) |
51 | 51 | expect(response[:body]).to include(:error)
|
52 | 52 | end
|
53 | 53 | end
|
|
72 | 72 |
|
73 | 73 | context 'with invalid asset' do
|
74 | 74 | context 'without params' do
|
75 |
| - it 'returns status 404, response body includes error' do |
| 75 | + it 'returns status 400, response body includes error' do |
76 | 76 | response = blockfrost_mainnet.get_asset_history(invalid_asset)
|
77 |
| - expect(response[:status]).to eq(404) |
| 77 | + expect(response[:status]).to eq(400) |
78 | 78 | expect(response[:body]).to include(:error)
|
79 | 79 | end
|
80 | 80 | end
|
81 | 81 | context 'with params' do
|
82 |
| - it 'returns status 404, response body includes error' do |
| 82 | + it 'returns status 400, response body includes error' do |
83 | 83 | response = blockfrost_mainnet.get_asset_history(invalid_asset, { count: 7, page: 3 })
|
84 |
| - expect(response[:status]).to eq(404) |
| 84 | + expect(response[:status]).to eq(400) |
85 | 85 | expect(response[:body]).to include(:error)
|
86 | 86 | end
|
87 | 87 | end
|
|
107 | 107 |
|
108 | 108 | context 'with invalid asset' do
|
109 | 109 | context 'without params' do
|
110 |
| - it 'returns status 404, response body includes error' do |
| 110 | + it 'returns status 400, response body includes error' do |
111 | 111 | response = blockfrost_mainnet.get_asset_transactions(invalid_asset)
|
112 |
| - expect(response[:status]).to eq(404) |
| 112 | + expect(response[:status]).to eq(400) |
113 | 113 | expect(response[:body]).to include(:error)
|
114 | 114 | end
|
115 | 115 | end
|
116 | 116 | context 'with params' do
|
117 |
| - it 'returns status 404, response body includes error' do |
| 117 | + it 'returns status 400, response body includes error' do |
118 | 118 | response = blockfrost_mainnet.get_asset_transactions(invalid_asset, { count: 7, page: 3 })
|
119 |
| - expect(response[:status]).to eq(404) |
| 119 | + expect(response[:status]).to eq(400) |
120 | 120 | expect(response[:body]).to include(:error)
|
121 | 121 | end
|
122 | 122 | end
|
|
142 | 142 |
|
143 | 143 | context 'with invalid asset' do
|
144 | 144 | context 'without params' do
|
145 |
| - it 'returns status 404, response body includes error' do |
| 145 | + it 'returns status 400, response body includes error' do |
146 | 146 | response = blockfrost_mainnet.get_asset_addresses(invalid_asset)
|
147 |
| - expect(response[:status]).to eq(404) |
| 147 | + expect(response[:status]).to eq(400) |
148 | 148 | expect(response[:body]).to include(:error)
|
149 | 149 | end
|
150 | 150 | end
|
151 | 151 | context 'with params' do
|
152 |
| - it 'returns status 404, response body includes error' do |
| 152 | + it 'returns status 400, response body includes error' do |
153 | 153 | response = blockfrost_mainnet.get_asset_addresses(invalid_asset, { count: 7, page: 3 })
|
154 |
| - expect(response[:status]).to eq(404) |
| 154 | + expect(response[:status]).to eq(400) |
155 | 155 | expect(response[:body]).to include(:error)
|
156 | 156 | end
|
157 | 157 | end
|
|
177 | 177 |
|
178 | 178 | context 'with invalid policy_id' do
|
179 | 179 | context 'without params' do
|
180 |
| - it 'returns status 404, response body includes error' do |
| 180 | + it 'returns status 400, response body includes error' do |
181 | 181 | response = blockfrost_mainnet.get_assets_of_policy(invalid_policy_id)
|
182 |
| - expect(response[:status]).to eq(404) |
| 182 | + expect(response[:status]).to eq(400) |
183 | 183 | expect(response[:body]).to include(:error)
|
184 | 184 | end
|
185 | 185 | end
|
186 | 186 | context 'with params' do
|
187 |
| - it 'returns status 404, response body includes error' do |
| 187 | + it 'returns status 400, response body includes error' do |
188 | 188 | response = blockfrost_mainnet.get_assets_of_policy(invalid_policy_id, { count: 7, page: 3 })
|
189 |
| - expect(response[:status]).to eq(404) |
| 189 | + expect(response[:status]).to eq(400) |
190 | 190 | expect(response[:body]).to include(:error)
|
191 | 191 | end
|
192 | 192 | end
|
|
0 commit comments