-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fixture and integration spec that tests detect on non php apps wi…
…th a composer.json [#116521177] Signed-off-by: John Shahid <[email protected]>
- Loading branch information
1 parent
40e6661
commit 2580893
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<html> | ||
</html> |
5 changes: 5 additions & 0 deletions
5
cf_spec/fixtures/non_php_app_with_composer_json/wwwroot/composer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
18
cf_spec/integration/deploy_non_php_app_with_composer_json.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|