[#345] fix subcribe controller specs

This commit is contained in:
Alexander Machehin 2014-03-21 13:53:25 +06:00
parent 528eb361c9
commit f95e7ce3ab
1 changed files with 4 additions and 2 deletions

View File

@ -71,7 +71,8 @@ describe Projects::SubscribesController do
context 'subscribed' do
before(:each) do
ss = @issue.subscribes.build(user: @user)
ss = @issue.subscribes.build
ss.user = @user
ss.save!
end
@ -93,7 +94,8 @@ describe Projects::SubscribesController do
context 'subscribed' do
before(:each) do
ss = @issue.subscribes.build(user: @user)
ss = @issue.subscribes.build
ss.user = @user
ss.save!
end