Commit 07274a860f35028572f179ccf53917dfa6f3ea7f

Authored by Max Gonzih
1 parent 8f9a8fc1
Exists in master and in 1 other branch production

Fix specs for bitbucket repo api call changes

spec/models/issue_trackers/bitbucket_issues_tracker_spec.rb
... ... @@ -26,16 +26,15 @@ describe IssueTrackers::BitbucketIssuesTracker do
26 26 }
27 27 EOF
28 28  
29   - stub_request(:post, "https://#{tracker.api_token}:#{tracker.project_id}@bitbucket.org/api/1.0/repositories/test_username/test_repo/issues/").to_return(:status => 200, :headers => {}, :body => body )
  29 + stub_request(:post, "https://#{tracker.api_token}:#{tracker.project_id}@bitbucket.org/api/1.0/repositories/test_user/test_repo/issues/").to_return(:status => 200, :headers => {}, :body => body )
30 30  
31 31 problem.app.issue_tracker.create_issue(problem)
32 32 problem.reload
33 33  
34   - requested = have_requested(:post, "https://#{tracker.api_token}:#{tracker.project_id}@bitbucket.org/api/1.0/repositories/test_username/test_repo/issues/")
  34 + requested = have_requested(:post, "https://#{tracker.api_token}:#{tracker.project_id}@bitbucket.org/api/1.0/repositories/test_user/test_repo/issues/")
35 35 WebMock.should requested.with(:title => /[production][foo#bar] FooError: Too Much Bar/)
36 36 WebMock.should requested.with(:content => /See this exception on Errbit/)
37 37  
38 38 problem.issue_link.should == @issue_link
39 39 end
40 40 end
41   -
... ...