diff --git a/spec/models/issue_spec.rb b/spec/models/issue_spec.rb index 68c73fe5..791e9cde 100644 --- a/spec/models/issue_spec.rb +++ b/spec/models/issue_spec.rb @@ -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) } diff --git a/spec/requests/milestones_spec.rb b/spec/requests/milestones_spec.rb index d4d67130..f1d5023e 100644 --- a/spec/requests/milestones_spec.rb +++ b/spec/requests/milestones_spec.rb @@ -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