Commit 69698aacbc237f6b9cbabae8eef2b7438f505466
1 parent
b607c70e
Exists in
master
and in
4 other branches
Additional tests added to Issue
Showing
1 changed file
with
12 additions
and
0 deletions
Show diff stats
spec/models/issue_spec.rb
@@ -43,4 +43,16 @@ describe Issue do | @@ -43,4 +43,16 @@ describe Issue do | ||
43 | subject.is_being_reassigned?.should be_false | 43 | subject.is_being_reassigned?.should be_false |
44 | end | 44 | end |
45 | end | 45 | end |
46 | + | ||
47 | + describe '#is_being_reassigned?' do | ||
48 | + it 'returnes issues assigned to user' do | ||
49 | + user = create :user | ||
50 | + | ||
51 | + 2.times do | ||
52 | + issue = create :issue, assignee: user | ||
53 | + end | ||
54 | + | ||
55 | + Issue.open_for(user).count.should eq 2 | ||
56 | + end | ||
57 | + end | ||
46 | end | 58 | end |