mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 23:31:18 +08:00
controllers with rspec3 syntax
This commit is contained in:
@ -2,7 +2,7 @@ require 'spec_helper'
|
||||
|
||||
describe Admin::ScreenedEmailsController do
|
||||
it "is a subclass of AdminController" do
|
||||
(Admin::ScreenedEmailsController < Admin::AdminController).should == true
|
||||
expect(Admin::ScreenedEmailsController < Admin::AdminController).to eq(true)
|
||||
end
|
||||
|
||||
let!(:user) { log_in(:admin) }
|
||||
@ -13,10 +13,10 @@ describe Admin::ScreenedEmailsController do
|
||||
end
|
||||
|
||||
subject { response }
|
||||
it { should be_success }
|
||||
it { is_expected.to be_success }
|
||||
|
||||
it 'returns JSON' do
|
||||
::JSON.parse(subject.body).should be_a(Array)
|
||||
expect(::JSON.parse(subject.body)).to be_a(Array)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user