mirror of
https://github.com/discourse/discourse.git
synced 2025-06-15 13:51:20 +08:00
DEV: Assert for 200 response code to avoid changing magic helper in the future.
This commit is contained in:
@ -11,7 +11,7 @@ describe Admin::ApiController do
|
||||
context '.index' do
|
||||
it "succeeds" do
|
||||
get :index, format: :json
|
||||
expect(response).to be_successful
|
||||
expect(response.status).to eq(200)
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user