Sha256: 60dd2310a1a3ff48971c89e11f31c317171127a59dc66e065a58d0b5b439c86f

Contents?: true

Size: 1015 Bytes

Versions: 18

Compression:

Stored size: 1015 Bytes

Contents

require_relative '../lib/publish.rb'
require 'rake'
describe Publish do
	it "should be able to publish file to subversion" do
		#FileUtils.rm_r('tmp') if(File.exists?('tmp'))
		#FileUtils.mkdir('tmp') if(!File.exists?('tmp'))
		#svn_repo="file:///#{Rake.application.original_dir}/tmp/svn_test_repo"
		#Dir.chdir('tmp') do
			#FileUtils.rm_r('tmp/svn_test_repo') if File.exists?('tmp/svn_test_repo')
			#puts `svnadmin create svn_test_repo`
			#expect(File.exists?('svn_test_repo')).to eq(true)

			#FileUtils.mkdir('publish') if(!File.exists?('publish'))
			#File.open('publish/file1.txt','w'){|f|f.write('abc')}
			#File.open('publish/file2.txt','w'){|f|f.write('def')}

			
			#expect(Command.exit_code('svn info #{svn_repo}/publish_test')).not_to eq(0)
			#Publish.to_subversion(FileList.new('publish/*.txt'),"#{svn_repo}/publish_test")
			#expect(Command.exit_code('svn info #{svn_repo}/publish_test')).to eq(0)

			#{}`svn checkout #{svn_repo} svn_test`
			#expect(File.exists?('svn_test'))
		#end
		

	end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
dev_commands-0.0.56 spec/publish_spec.rb
dev_commands-0.0.55 spec/publish_spec.rb
dev_commands-0.0.49 spec/publish_spec.rb
dev_commands-0.0.48 spec/publish_spec.rb
dev_commands-0.0.47 spec/publish_spec.rb
dev_commands-0.0.46 spec/publish_spec.rb
dev_commands-0.0.45 spec/publish_spec.rb
dev_commands-0.0.44 spec/publish_spec.rb
dev_commands-0.0.43 spec/publish_spec.rb
dev_commands-0.0.42 spec/publish_spec.rb
dev_commands-0.0.41 spec/publish_spec.rb
dev_commands-0.0.40 spec/publish_spec.rb
dev_commands-0.0.39 spec/publish_spec.rb
dev_commands-0.0.38 spec/publish_spec.rb
dev_commands-0.0.37 spec/publish_spec.rb
dev_commands-0.0.36 spec/publish_spec.rb
dev_commands-0.0.35 spec/publish_spec.rb
dev_commands-0.0.34 spec/publish_spec.rb