mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 15:25:10 +08:00
89ad2b5900
This updates tests to use latest rails 5 practice and updates ALL dependencies that could be updated Performance testing shows that performance has not regressed if anything it is marginally faster now.
23 lines
475 B
Ruby
23 lines
475 B
Ruby
require 'rails_helper'
|
|
|
|
describe Admin::ScreenedEmailsController do
|
|
it "is a subclass of AdminController" do
|
|
expect(Admin::ScreenedEmailsController < Admin::AdminController).to eq(true)
|
|
end
|
|
|
|
let!(:user) { log_in(:admin) }
|
|
|
|
context '.index' do
|
|
before do
|
|
get :index, format: :json
|
|
end
|
|
|
|
subject { response }
|
|
it { is_expected.to be_successful }
|
|
|
|
it 'returns JSON' do
|
|
expect(::JSON.parse(subject.body)).to be_a(Array)
|
|
end
|
|
end
|
|
end
|