Skip to content

Commit 76a0781

Browse files
RochesterinNYCjtarchie
authored andcommitted
update test to look at log
Signed-off-by: JT Archie <jtarchie@gmail.com>
1 parent 62a04ca commit 76a0781

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

cf_spec/integration/deploy_a_python_app_spec.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
expect(browser).to have_body('Hello, World!')
2929
expect(app).to have_logged(/Downloaded \[file:\/\/.*\]/)
3030

31-
expect(app.host).not_to have_internet_traffic
31+
expect(app).not_to have_internet_traffic
3232
end
3333
end
3434

@@ -41,7 +41,7 @@
4141
browser.visit_path('/')
4242
expect(browser).to have_body('Hello, World!')
4343

44-
expect(app.host).not_to have_internet_traffic
44+
expect(app).not_to have_internet_traffic
4545
end
4646
end
4747
end
@@ -56,8 +56,7 @@
5656

5757
specify do
5858
expect(app).not_to be_running(0)
59-
statement_appearances = log_file.readlines.join.scan 'Cloud Foundry does not support Pip Mercurial dependencies while in offline-mode. Vendor your dependencies if they do not work.'
60-
expect(statement_appearances.count).to be 1
59+
expect(app).to have_logged 'Cloud Foundry does not support Pip Mercurial dependencies while in offline-mode. Vendor your dependencies if they do not work.'
6160
end
6261
end
6362
end

0 commit comments

Comments
 (0)