Permalink
Browse files

Refactor to use FactoryGirl.create_list

  • Loading branch information...
1 parent 0aab561 commit 36101eeb072cd6e9dcde9970a27e209d64aa728d @samnang committed May 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/models/group_spec.rb
@@ -26,7 +26,7 @@
describe ".search_for" do
context "keyword is blank" do
it "returns collection groups" do
- 2.times { Factory(:group) }
+ FactoryGirl.create_list(:group, 2)
blank_keyword = nil
results = Group.search_for(blank_keyword)

0 comments on commit 36101ee

Please sign in to comment.