mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 01:56:58 +08:00
controllers with rspec3 syntax
This commit is contained in:
@ -2,7 +2,7 @@ require 'spec_helper'
|
||||
|
||||
describe Admin::ScreenedUrlsController do
|
||||
it "is a subclass of AdminController" do
|
||||
(Admin::ScreenedUrlsController < Admin::AdminController).should == true
|
||||
expect(Admin::ScreenedUrlsController < Admin::AdminController).to eq(true)
|
||||
end
|
||||
|
||||
let!(:user) { log_in(:admin) }
|
||||
@ -13,10 +13,10 @@ describe Admin::ScreenedUrlsController 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