File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed
Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 11GIT
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)
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
3232PLATFORMS
3333 ruby
Original file line number Diff line number Diff line change 33
44describe '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
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
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
You can’t perform that action at this time.
0 commit comments