Commit 2bad798e119b41ce075815647a17ddc2dec9befe

Authored by Dmitriy Zaporozhets
1 parent d98b1833

fixed tests

spec/models/issue_spec.rb
... ... @@ -23,7 +23,7 @@ describe Issue do
23 23 it { Factory.create(:issue,
24 24 :author => Factory(:user),
25 25 :assignee => Factory(:user),
26   - :projet => Factory.create(:project)).should be_valid }
  26 + :project => Factory.create(:project)).should be_valid }
27 27  
28 28 describe "plus 1" do
29 29 let(:project) { Factory(:project) }
... ...
spec/requests/milestones_spec.rb
... ... @@ -45,7 +45,7 @@ describe "Milestones" do
45 45 end
46 46  
47 47 it { current_path.should == project_milestone_path(project, project.milestones.last) }
48   - it { should have_content(@milestone.title[0..10]) }
49   - it { should have_content(@milestone.expires_at) }
  48 + it { page.should have_content(project.milestones.last.title[0..10]) }
  49 + it { page.should have_content(project.milestones.last.expires_at) }
50 50 end
51 51 end
... ...