Additional tests added to Issue
This commit is contained in:
parent
b607c70e8f
commit
69698aacbc
1 changed files with 12 additions and 0 deletions
|
@ -43,4 +43,16 @@ describe Issue do
|
||||||
subject.is_being_reassigned?.should be_false
|
subject.is_being_reassigned?.should be_false
|
||||||
end
|
end
|
||||||
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
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue