mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
Fix all the errors to get our tests green on Rails 5.1.
This commit is contained in:
@ -10,7 +10,7 @@ describe Admin::PluginsController do
|
||||
let!(:admin) { log_in(:admin) }
|
||||
|
||||
it 'should return JSON' do
|
||||
xhr :get, :index
|
||||
get :index, format: :json
|
||||
expect(response).to be_success
|
||||
expect(::JSON.parse(response.body).has_key?('plugins')).to eq(true)
|
||||
end
|
||||
|
Reference in New Issue
Block a user