Additional tests added to Issue

This commit is contained in:
Andrew8xx8 2013-02-18 13:41:32 +04:00
parent b607c70e8f
commit 69698aacbc

View file

@ -43,4 +43,16 @@ describe Issue do
subject.is_being_reassigned?.should be_false
end
end
describe '#is_being_reassigned?' do
it 'returnes issues assigned to user' do
user = create :user
2.times do
issue = create :issue, assignee: user
end
Issue.open_for(user).count.should eq 2
end
end
end