spec/flipper/api/v1/actions/feature_spec.rb in flipper-api-0.10.0 vs spec/flipper/api/v1/actions/feature_spec.rb in flipper-api-0.10.1
- old
+ new
@@ -103,11 +103,11 @@
it 'returns 404' do
expect(last_response.status).to eq(404)
end
it 'returns formatted error response body' do
- expect(json_response).to eq({ "code" => 1, "message" => "Feature not found.", "more_info" => "" })
+ expect(json_response).to eq({ "code" => 1, "message" => "Feature not found.", "more_info" => "https://github.com/jnunemaker/flipper/tree/master/docs/api#error-code-reference" })
end
end
end
describe 'delete' do
@@ -129,10 +129,10 @@
it 'returns 404' do
expect(last_response.status).to eq(404)
end
it 'returns formatted error response body' do
- expect(json_response).to eq({ "code" => 1, "message" => "Feature not found.", "more_info" => "" })
+ expect(json_response).to eq({ "code" => 1, "message" => "Feature not found.", "more_info" => "https://github.com/jnunemaker/flipper/tree/master/docs/api#error-code-reference" })
end
end
end
end