spec/kpm/remote/base_artifact_spec.rb in kpm-0.0.15 vs spec/kpm/remote/base_artifact_spec.rb in kpm-0.1.0

- old
+ new

@@ -21,12 +21,10 @@ # Verify we skip the second time test_download dir, nil, true # Verify the download happens when we set force_download test_download dir, nil, false, true end - - end # This test makes sure the top level directory is correctly verify_is_skipped it 'should be able to download and verify .tar.gz ruby artifacts' do # Use the payment-test-plugin as a test, as it is fairly small (2.5M) @@ -43,10 +41,12 @@ files_in_dir = Dir[info[:file_path] + '/*'] files_in_dir.size.should == 1 files_in_dir[0].should == info[:file_path] + '/killbill-payment-test' File.read(info[:file_path] + '/killbill-payment-test/1.8.7/killbill.properties').should == "mainClass=PaymentTest::PaymentPlugin\nrequire=payment_test\npluginType=PAYMENT\n" + + info[:bundle_dir].should == info[:file_path] + '/killbill-payment-test/1.8.7' end end it 'should be able to download and verify generic .tar.gz artifacts' do # The artifact is not small unfortunately (23.7M) @@ -62,9 +62,11 @@ files_in_dir = Dir[info[:file_path] + '/*'] files_in_dir.size.should == 20 File.file?(info[:file_path] + '/killbill-osgi-bundles-jruby-0.11.3.jar').should be_true + + info[:bundle_dir].should == info[:file_path] end end def test_download(dir, filename=nil, verify_is_skipped=false, force_download=false)