Skip to content

Commit 769be25

Browse files
author
Jacques Chester
committed
Bump to latest machete, bump rspec
1 parent 309c60f commit 769be25

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

cf.Gemfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
GIT
22
remote: git://github.com/cf-buildpacks/machete.git
3-
revision: 6bd9bcd2edc98fd638fe8ea8473ac0cdd4b397db
3+
revision: 4f2ac6817b928a85fb4126263124a0f1a4aa06d2
44
branch: master
55
specs:
66
machete (0.0.1)
@@ -20,14 +20,14 @@ GEM
2020
rspec-core (~> 3.0.0)
2121
rspec-expectations (~> 3.0.0)
2222
rspec-mocks (~> 3.0.0)
23-
rspec-core (3.0.2)
23+
rspec-core (3.0.4)
2424
rspec-support (~> 3.0.0)
25-
rspec-expectations (3.0.2)
25+
rspec-expectations (3.0.4)
2626
diff-lcs (>= 1.2.0, < 2.0)
2727
rspec-support (~> 3.0.0)
28-
rspec-mocks (3.0.2)
28+
rspec-mocks (3.0.4)
2929
rspec-support (~> 3.0.0)
30-
rspec-support (3.0.2)
30+
rspec-support (3.0.4)
3131

3232
PLATFORMS
3333
ruby

cf_spec/integration/deploy_a_node_app_spec.rb

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@
33

44
describe 'CF NodeJS Buildpack' do
55
subject(:app) { Machete.deploy_app(app_name) }
6+
let(:browser) { Machete::Browser.new(app) }
67

78
context 'with cached buildpack dependencies' do
89
context 'in an offline environment', if: Machete::BuildpackMode.offline? do
910
let(:app_name) { 'node_web_app' }
1011

1112
specify do
1213
expect(app).to be_running
13-
expect(app).to have_page_body('Hello, World!')
14+
15+
browser.visit_path('/')
16+
expect(browser).to have_body('Hello, World!')
17+
1418
expect(app.host).not_to have_internet_traffic
1519
end
1620
end
@@ -24,7 +28,9 @@
2428

2529
specify do
2630
expect(app).to be_running
27-
expect(app).to have_page_body('Hello, World!')
31+
32+
browser.visit_path('/')
33+
expect(browser).to have_body('Hello, World!')
2834
end
2935
end
3036

@@ -34,7 +40,9 @@
3440
specify do
3541
expect(Dir.exists?("cf_spec/fixtures/#{app_name}/node_modules")).to eql false
3642
expect(app).to be_running
37-
expect(app).to have_page_body('Hello, World!')
43+
44+
browser.visit_path('/')
45+
expect(browser).to have_body('Hello, World!')
3846
end
3947
end
4048
end

0 commit comments

Comments
 (0)