Skip to content

Commit

Permalink
Add fixture and integration spec that tests detect on non php apps wi…
Browse files Browse the repository at this point in the history
…th a composer.json

[#116521177]

Signed-off-by: John Shahid <[email protected]>
  • Loading branch information
RochesterinNYC authored and jvshahid committed Apr 11, 2016
1 parent 40e6661 commit 2580893
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cf_spec/fixtures/non_php_app_with_composer_json/foobar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<html>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"php": ">=5.5.0"
}
}
18 changes: 18 additions & 0 deletions cf_spec/integration/deploy_non_php_app_with_composer_json.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
$: << 'cf_spec'
require 'cf_spec_helper'

describe 'CF PHP Buildpack' do
subject(:app) { Machete.deploy_app(app_name) }

after { Machete::CF::DeleteApp.new.execute(app) }

context "deploying a non php app with composer.json file" do
let(:app_name) { 'non_php_app_with_composer_json' }

it 'does not detect the app' do
expect(app).not_to be_running
expect(app).to have_logged 'None of the buildpacks detected a compatible application'
end
end
end

0 comments on commit 2580893

Please sign in to comment.