Commit ce90ab697345a56166e022c0c0a99bacad10d86a
1 parent
c406fc5a
Exists in
master
and in
1 other branch
Removed unnecessary regex..
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
spec/models/issue_trackers/redmine_tracker_spec.rb
| @@ -10,7 +10,7 @@ describe IssueTrackers::RedmineTracker do | @@ -10,7 +10,7 @@ describe IssueTrackers::RedmineTracker do | ||
| 10 | body = "<issue><subject>my subject</subject><id>#{number}</id></issue>" | 10 | body = "<issue><subject>my subject</subject><id>#{number}</id></issue>" |
| 11 | 11 | ||
| 12 | # Build base url with account URL, and username/password basic auth | 12 | # Build base url with account URL, and username/password basic auth |
| 13 | - base_url = tracker.account.gsub /http:\/\//, "http://#{tracker.username}:#{tracker.password}@" | 13 | + base_url = tracker.account.gsub 'http://', "http://#{tracker.username}:#{tracker.password}@" |
| 14 | 14 | ||
| 15 | stub_request(:post, "#{base_url}/issues.xml"). | 15 | stub_request(:post, "#{base_url}/issues.xml"). |
| 16 | to_return(:status => 201, :headers => {'Location' => @issue_link}, :body => body ) | 16 | to_return(:status => 201, :headers => {'Location' => @issue_link}, :body => body ) |