|
6 | 6 | Codeship::Status::STATES.each do |state| |
7 | 7 | it "should parse #{state}" do |
8 | 8 |
|
9 | | - stub_request(:head, "https://codeship.com/projects/#{state}/status"). |
| 9 | + stub_request(:head, "https://app.codeship.com/projects/#{state}/status"). |
10 | 10 | with(headers: {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}). |
11 | 11 | to_return(status: 200, body: "", headers: {'Content-Disposition' => "inline; filename=\"status_#{state}.png\""}) |
12 | 12 |
|
|
20 | 20 | Codeship::Status::STATES.each do |state| |
21 | 21 | it "should parse #{state}" do |
22 | 22 |
|
23 | | - stub_request(:head, "https://codeship.com/projects/#{state}/status"). |
| 23 | + stub_request(:head, "https://app.codeship.com/projects/#{state}/status"). |
24 | 24 | with(headers: {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}). |
25 | 25 | to_return(status: 200, body: "", headers: {'Content-Disposition' => "inline; filename=\"status_#{state}.gif\""}) |
26 | 26 |
|
|
35 | 35 | context 'of a project with completed build' do |
36 | 36 | Codeship::Status::STATES.each do |state| |
37 | 37 | it "should parse #{state}" do |
38 | | - stub_request(:head, "https://codeship.com/projects/#{state}/status?branch=master"). |
| 38 | + stub_request(:head, "https://app.codeship.com/projects/#{state}/status?branch=master"). |
39 | 39 | with(headers: {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}). |
40 | 40 | to_return(status: 200, body: "", headers: {'Content-Disposition' => "inline; filename=\"status_#{state}.png\""}) |
41 | 41 |
|
|
48 | 48 | context 'of a project with active build' do |
49 | 49 | Codeship::Status::STATES.each do |state| |
50 | 50 | it "should parse #{state}" do |
51 | | - stub_request(:head, "https://codeship.com/projects/#{state}/status?branch=master"). |
| 51 | + stub_request(:head, "https://app.codeship.com/projects/#{state}/status?branch=master"). |
52 | 52 | with(headers: {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}). |
53 | 53 | to_return(status: 200, body: "", headers: {'Content-Disposition' => "inline; filename=\"status_#{state}.gif\""}) |
54 | 54 |
|
|
0 commit comments