Commit 2bad798e119b41ce075815647a17ddc2dec9befe
1 parent
d98b1833
Exists in
master
and in
4 other branches
fixed tests
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
spec/models/issue_spec.rb
@@ -23,7 +23,7 @@ describe Issue do | @@ -23,7 +23,7 @@ describe Issue do | ||
23 | it { Factory.create(:issue, | 23 | it { Factory.create(:issue, |
24 | :author => Factory(:user), | 24 | :author => Factory(:user), |
25 | :assignee => Factory(:user), | 25 | :assignee => Factory(:user), |
26 | - :projet => Factory.create(:project)).should be_valid } | 26 | + :project => Factory.create(:project)).should be_valid } |
27 | 27 | ||
28 | describe "plus 1" do | 28 | describe "plus 1" do |
29 | let(:project) { Factory(:project) } | 29 | let(:project) { Factory(:project) } |
spec/requests/milestones_spec.rb
@@ -45,7 +45,7 @@ describe "Milestones" do | @@ -45,7 +45,7 @@ describe "Milestones" do | ||
45 | end | 45 | end |
46 | 46 | ||
47 | it { current_path.should == project_milestone_path(project, project.milestones.last) } | 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 | end | 50 | end |
51 | end | 51 | end |