Skip to content
Snippets Groups Projects
Commit 69698aac authored by Andrew8xx8's avatar Andrew8xx8
Browse files

Additional tests added to Issue

parent b607c70e
No related branches found
No related tags found
1 merge request!3023State machine integrated to Issues, Merge Requests, Milestones
Loading
Loading
@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment