first pack of tests for milestones

This commit is contained in:
Dmitriy Zaporozhets 2012-04-09 01:01:42 +03:00
parent 23d950855d
commit d98b183361
8 changed files with 145 additions and 48 deletions

View file

@ -5,6 +5,7 @@ describe Issue do
it { should belong_to(:project) }
it { should belong_to(:author) }
it { should belong_to(:assignee) }
it { should belong_to(:milestone) }
end
describe "Validation" do
@ -22,7 +23,7 @@ describe Issue do
it { Factory.create(:issue,
:author => Factory(:user),
:assignee => Factory(:user),
:project => Factory.create(:project)).should be_valid }
:projet => Factory.create(:project)).should be_valid }
describe "plus 1" do
let(:project) { Factory(:project) }