Commit 69698aac authored by Andrew8xx8's avatar Andrew8xx8

Additional tests added to Issue

parent b607c70e
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment