spec/publish_spec.rb in dev_commands-0.0.33 vs spec/publish_spec.rb in dev_commands-0.0.34

- old
+ new

@@ -1,28 +1,28 @@ -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 +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 \ No newline at end of file