Permalink
Browse files

Create 7 inquiries in one go.

  • Loading branch information...
1 parent 72a2671 commit 32b64d468f0c72b4ca3cc69370a86bed3fb26fcd @ugisozols ugisozols committed Mar 23, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 spec/models/refinery/inquiries/inquiry_spec.rb
@@ -36,8 +36,7 @@ module Inquiries
end
it "returns latest 7 inquiries including spam ones" do
- 4.times { Factory(:inquiry) }
- 3.times { Factory(:inquiry) }
+ 7.times { Factory(:inquiry) }
Refinery::Inquiries::Inquiry.all[0..2].each { |inquiry| inquiry.toggle!(:spam) }
Refinery::Inquiries::Inquiry.latest(7, true).length.should == 7
end

0 comments on commit 32b64d4

Please sign in to comment.