Skip to content

Commit

Permalink
fix serverspec for composer
Browse files Browse the repository at this point in the history
  • Loading branch information
htuscher committed Oct 27, 2020
1 parent c8e6bb5 commit 8f981bb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/serverspec/spec/shared/php/composer.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
shared_examples 'php::composer' do
it "should composer be installed" do
expect(file("/usr/local/bin/composer")).to be_file
expect(file("/usr/local/bin/composer")).to be_executable
it "should composer V1 be installed" do
expect(file("/usr/local/bin/composer1")).to be_file
expect(file("/usr/local/bin/composer1")).to be_executable
end

it "should composer V2 be installed" do
expect(file("/usr/local/bin/composer2")).to be_file
expect(file("/usr/local/bin/composer2")).to be_executable
end

describe command('/usr/local/bin/composer') do
Expand Down

0 comments on commit 8f981bb

Please sign in to comment.