mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
controllers with rspec3 syntax
This commit is contained in:
parent
c96220ca76
commit
bc73238c8f
50 changed files with 955 additions and 955 deletions
|
@ -5,7 +5,7 @@ describe ComposerMessagesController do
|
|||
context '.index' do
|
||||
|
||||
it 'requires you to be logged in' do
|
||||
lambda { xhr :get, :index }.should raise_error(Discourse::NotLoggedIn)
|
||||
expect { xhr :get, :index }.to raise_error(Discourse::NotLoggedIn)
|
||||
end
|
||||
|
||||
context 'when logged in' do
|
||||
|
@ -14,7 +14,7 @@ describe ComposerMessagesController do
|
|||
|
||||
it 'redirects to your user preferences' do
|
||||
xhr :get, :index
|
||||
response.should be_success
|
||||
expect(response).to be_success
|
||||
end
|
||||
|
||||
it 'delegates args to the finder' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue