Remove some calls to all. They are not required, and Rails4 raises warnings about them.

This commit is contained in:
Stephan Kaag
2013-07-22 20:44:11 +02:00
parent 112b9f9c2a
commit 0e3b8fbb24
9 changed files with 9 additions and 10 deletions

View File

@ -223,7 +223,7 @@ describe User do
it 'allows moderator to delete all posts' do
@user.delete_all_posts!(@guardian)
expect(Post.where(id: @posts.map(&:id)).all).to be_empty
expect(Post.where(id: @posts.map(&:id))).to be_empty
@posts.each do |p|
if p.post_number == 1
expect(Topic.where(id: p.topic_id).first).to be_nil