Commit 5a227ae98f802c4b1cd34b5b89aa34c902996ad4
1 parent
5e8ff28f
Exists in
master
and in
1 other branch
Fixed Redmine url specs
Showing
2 changed files
with
4 additions
and
3 deletions
Show diff stats
spec/fabricators/app_fabricator.rb
spec/models/issue_trackers/redmine_tracker_spec.rb
| ... | ... | @@ -30,9 +30,9 @@ describe IssueTrackers::RedmineTracker do |
| 30 | 30 | it "should generate a url where a file with line number can be viewed" do |
| 31 | 31 | t = Fabricate(:redmine_tracker, :account => 'http://redmine.example.com', :project_id => "errbit") |
| 32 | 32 | t.url_to_file("/example/file").should == |
| 33 | - 'http://redmine.example.com/projects/errbit/repository/annotate/example/file' | |
| 33 | + 'http://redmine.example.com/projects/errbit/repository/revisions/master/changes/example/file' | |
| 34 | 34 | t.url_to_file("/example/file", 25).should == |
| 35 | - 'http://redmine.example.com/projects/errbit/repository/annotate/example/file#L25' | |
| 35 | + 'http://redmine.example.com/projects/errbit/repository/revisions/master/changes/example/file#L25' | |
| 36 | 36 | end |
| 37 | 37 | |
| 38 | 38 | it "should use the alt_project_id to generate a file/linenumber url, if given" do |
| ... | ... | @@ -40,6 +40,6 @@ describe IssueTrackers::RedmineTracker do |
| 40 | 40 | :project_id => "errbit", |
| 41 | 41 | :alt_project_id => "actual_project") |
| 42 | 42 | t.url_to_file("/example/file", 25).should == |
| 43 | - 'http://redmine.example.com/projects/actual_project/repository/annotate/example/file#L25' | |
| 43 | + 'http://redmine.example.com/projects/actual_project/repository/revisions/master/changes/example/file#L25' | |
| 44 | 44 | end |
| 45 | 45 | end | ... | ... |