Commit 5a227ae98f802c4b1cd34b5b89aa34c902996ad4

Authored by Nathan Broadbent
1 parent 5e8ff28f
Exists in master and in 1 other branch production

Fixed Redmine url specs

spec/fabricators/app_fabricator.rb
1 1 Fabricator(:app) do
2 2 name { sequence(:app_name){|n| "App ##{n}"} }
  3 + repository_branch 'master'
3 4 end
4 5  
5 6 Fabricator(:app_with_watcher, :from => :app) do
... ...
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
... ...