diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-04-23 15:02:02 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-04-28 09:07:27 +0100 |
commit | ea5d96088dbafd807c9e2495050175f3cb97adf5 (patch) | |
tree | dba2f49ec8490204ff42f723da040e2bc9136fea /spec/models/widget_vote_spec.rb | |
parent | 871a3a7214ca8381bf29e47d1c79c7736f871798 (diff) |
Use factory for widget vote
Diffstat (limited to 'spec/models/widget_vote_spec.rb')
-rw-r--r-- | spec/models/widget_vote_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/widget_vote_spec.rb b/spec/models/widget_vote_spec.rb index db5e4385d..b9f990eac 100644 --- a/spec/models/widget_vote_spec.rb +++ b/spec/models/widget_vote_spec.rb @@ -28,7 +28,7 @@ describe WidgetVote do end it 'is valid with a cookie and info request' do - widget_vote = FactoryGirl.create(:info_request).widget_votes.build(:cookie => 'x' * 20) + widget_vote = FactoryGirl.create(:widget_vote) widget_vote.should be_valid end |