From 57e167f1f2087912f1828d43d81bc4735a001aca Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Tue, 18 Mar 2014 23:45:13 +0400 Subject: [PATCH] #345: fixed subscribe_spec --- spec/models/subscribe_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/subscribe_spec.rb b/spec/models/subscribe_spec.rb index 4dbc53e13..192fcb687 100644 --- a/spec/models/subscribe_spec.rb +++ b/spec/models/subscribe_spec.rb @@ -21,7 +21,7 @@ describe Subscribe do end it 'should create subscribe' do - @ability.should be_able_to(:create, Subscribe.new(subscribeable: @issue, user: @user)) + @ability.should be_able_to(:create, FactoryGirl.build(:subscribe, subscribeable: @issue, user: @user)) end context 'destroy' do @@ -53,7 +53,7 @@ describe Subscribe do end it 'should create subscribe' do - @ability.should be_able_to(:create, Subscribe.new(subscribeable: @issue, user: @user)) + @ability.should be_able_to(:create, FactoryGirl.build(:subscribe, subscribeable: @issue, user: @user)) end context 'destroy' do