mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
update specs to remove deprecation warnings
This commit is contained in:
parent
067f552cd5
commit
efc4109902
10 changed files with 24 additions and 24 deletions
|
@ -782,7 +782,7 @@ describe UsersController do
|
|||
xhr :get, :invited, username: inviter.username, filter: 'billybob'
|
||||
|
||||
invites = JSON.parse(response.body)['invites']
|
||||
expect(invites).to have(1).item
|
||||
invites.size.should == 1
|
||||
expect(invites.first).to include('email' => 'billybob@example.com')
|
||||
end
|
||||
|
||||
|
@ -804,7 +804,7 @@ describe UsersController do
|
|||
xhr :get, :invited, username: inviter.username, filter: 'billybob'
|
||||
|
||||
invites = JSON.parse(response.body)['invites']
|
||||
expect(invites).to have(1).item
|
||||
invites.size.should == 1
|
||||
expect(invites.first).to include('email' => 'billybob@example.com')
|
||||
end
|
||||
|
||||
|
@ -830,7 +830,7 @@ describe UsersController do
|
|||
xhr :get, :invited, username: inviter.username
|
||||
|
||||
invites = JSON.parse(response.body)['invites']
|
||||
expect(invites).to have(1).item
|
||||
invites.size.should == 1
|
||||
expect(invites.first).to include('email' => invite.email)
|
||||
end
|
||||
end
|
||||
|
@ -851,7 +851,7 @@ describe UsersController do
|
|||
xhr :get, :invited, username: inviter.username
|
||||
|
||||
invites = JSON.parse(response.body)['invites']
|
||||
expect(invites).to have(1).item
|
||||
invites.size.should == 1
|
||||
expect(invites.first).to include("email" => invite.email)
|
||||
end
|
||||
end
|
||||
|
@ -885,7 +885,7 @@ describe UsersController do
|
|||
xhr :get, :invited, username: inviter.username
|
||||
|
||||
invites = JSON.parse(response.body)['invites']
|
||||
expect(invites).to have(1).item
|
||||
invites.size.should == 1
|
||||
expect(invites.first).to include('email' => invite.email)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue