controllers with rspec3 syntax

This commit is contained in:
Luciano Sousa
2015-01-09 14:04:02 -03:00
parent c96220ca76
commit bc73238c8f
50 changed files with 955 additions and 955 deletions

View File

@ -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