提交 2bad798e 编写于 作者: D Dmitriy Zaporozhets

fixed tests

上级 d98b1833
......@@ -23,7 +23,7 @@ describe Issue do
it { Factory.create(:issue,
:author => Factory(:user),
:assignee => Factory(:user),
:projet => Factory.create(:project)).should be_valid }
:project => Factory.create(:project)).should be_valid }
describe "plus 1" do
let(:project) { Factory(:project) }
......
......@@ -45,7 +45,7 @@ describe "Milestones" do
end
it { current_path.should == project_milestone_path(project, project.milestones.last) }
it { should have_content(@milestone.title[0..10]) }
it { should have_content(@milestone.expires_at) }
it { page.should have_content(project.milestones.last.title[0..10]) }
it { page.should have_content(project.milestones.last.expires_at) }
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册