Sha256: f3ac23964352bcf45f9baa4a9378e94d23b19f18513b598fa9ac5ae6c95a2c58
Contents?: true
Size: 967 Bytes
Versions: 2
Compression:
Stored size: 967 Bytes
Contents
gem 'minitest' require 'minitest/autorun' require 'bib/opsworks/composer' class ComposerTest < Minitest::Test def setup @fixtures_path ||= Pathname.new(File.expand_path('../tmp-fixtures/', __FILE__)).tap{|path| FileUtils.mkdir_p path.to_s } @release_path = Pathname.new(File.expand_path('releases/123/', @fixtures_path)) FileUtils.mkdir_p @release_path FileUtils.mkdir_p Pathname.new(File.expand_path('current/vendor/some-lib', @fixtures_path)) end def teardown FileUtils.rm_rf @fixtures_path end def test_composer_copy composervendor = Bib::Opsworks::Composer.new() #do not use www-data, or the test will fail on systems without that user deploydata = { 'deploy_user' => { 'user' => Process.uid, 'group' => Process.gid }} composervendor.copy_vendor(@release_path, deploydata) assert_equal(true,::File.exists?(File.expand_path('releases/123/vendor/some-lib',@fixtures_path))) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
BibOpsworks-0.0.2 | tests/composer_test.rb |
BibOpsworks-0.0.1 | tests/composer_test.rb |