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