#345: fixed subscribe_spec

This commit is contained in:
Vokhmin Alexey V 2014-03-18 23:45:13 +04:00
parent 2ee3ea93bd
commit 57e167f1f2
1 changed files with 2 additions and 2 deletions

View File

@ -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