fixed tests

This commit is contained in:
Dmitriy Zaporozhets 2012-04-09 01:29:15 +03:00
parent d98b183361
commit 2bad798e11
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -45,7 +45,7 @@ describe "Milestones" do
end end
it { current_path.should == project_milestone_path(project, project.milestones.last) } it { current_path.should == project_milestone_path(project, project.milestones.last) }
it { should have_content(@milestone.title[0..10]) } it { page.should have_content(project.milestones.last.title[0..10]) }
it { should have_content(@milestone.expires_at) } it { page.should have_content(project.milestones.last.expires_at) }
end end
end end