Commit 2bad798e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

fixed tests

parent d98b1833
...@@ -23,7 +23,7 @@ describe Issue do ...@@ -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) }
......
...@@ -45,7 +45,7 @@ describe "Milestones" do ...@@ -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
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