diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-04-09 02:01:42 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-04-09 02:01:42 +0400 |
commit | d98b1833612af09fb405880ef7acd63a4e2a42fa (patch) | |
tree | aeaccad8bca98675765206f2856db2509c3c29bf /spec/models/issue_spec.rb | |
parent | 23d950855d6d2524d00b1f0618c008e2529f06a4 (diff) |
first pack of tests for milestones
Diffstat (limited to 'spec/models/issue_spec.rb')
-rw-r--r-- | spec/models/issue_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/models/issue_spec.rb b/spec/models/issue_spec.rb index d76adff3dae..68c73fe5ebc 100644 --- a/spec/models/issue_spec.rb +++ b/spec/models/issue_spec.rb @@ -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) } |