mirror of
https://github.com/saltstack-formulas/packages-formula.git
synced 2025-04-16 09:40:23 +00:00
23 lines
456 B
Ruby
23 lines
456 B
Ruby
![]() |
go_path = '/home/kitchen/go'
|
||
|
|
||
|
# GO GET
|
||
|
control 'go get github.com/golang/example/hello' do
|
||
|
title 'should be installed'
|
||
|
desc '(only testing in the Debian platform, as these are OS-independent'
|
||
|
|
||
|
only_if do
|
||
|
os.debian?
|
||
|
end
|
||
|
|
||
|
describe file('/usr/local/go/bin/go') do
|
||
|
it { should be_executable }
|
||
|
end
|
||
|
|
||
|
%w(
|
||
|
github.com/golang/example/hello
|
||
|
).each do |f|
|
||
|
describe file("#{go_path}/src/#{f}") do
|
||
|
it { should exist }
|
||
|
end
|
||
|
end
|