albacore 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. data/Gemfile +7 -7
  2. data/README.markdown +0 -33
  3. data/VERSION +1 -1
  4. metadata +84 -91
  5. data/spec/albacoremodel_spec.rb +0 -53
  6. data/spec/assemblyinfo_spec.rb +0 -541
  7. data/spec/attrmethods_spec.rb +0 -136
  8. data/spec/config_spec.rb +0 -34
  9. data/spec/createtask_spec.rb +0 -236
  10. data/spec/csc_spec.rb +0 -253
  11. data/spec/docu_spec.rb +0 -109
  12. data/spec/exec_spec.rb +0 -45
  13. data/spec/fluentmigratorrunner_spec.rb +0 -254
  14. data/spec/msbuild_spec.rb +0 -215
  15. data/spec/mspec_spec.rb +0 -28
  16. data/spec/mstesttestrunner_spec.rb +0 -142
  17. data/spec/nant_spec.rb +0 -110
  18. data/spec/nchurn_spec.rb +0 -75
  19. data/spec/ncoverconsole_spec.rb +0 -353
  20. data/spec/ncoverreport_spec.rb +0 -619
  21. data/spec/ndepend_spec.rb +0 -72
  22. data/spec/nunittestrunner_spec.rb +0 -122
  23. data/spec/nuspec_spec.rb +0 -78
  24. data/spec/output_spec.rb +0 -117
  25. data/spec/patches/docu_patch.rb +0 -13
  26. data/spec/patches/fail_patch.rb +0 -9
  27. data/spec/patches/system_patch.rb +0 -20
  28. data/spec/plink_spec.rb +0 -62
  29. data/spec/runcommand_spec.rb +0 -94
  30. data/spec/spec_helper.rb +0 -17
  31. data/spec/specflowreport_spec.rb +0 -146
  32. data/spec/sqlcmd_spec.rb +0 -334
  33. data/spec/support/assemblyinfotester.rb +0 -51
  34. data/spec/support/ironruby_validator.rb +0 -26
  35. data/spec/support/msbuildtestdata.rb +0 -32
  36. data/spec/support/nanttestdata.rb +0 -33
  37. data/spec/support/ncoverconsoletestdata.rb +0 -20
  38. data/spec/support/ncoverreporttestdata.rb +0 -26
  39. data/spec/support/nokogiri_validator.rb +0 -15
  40. data/spec/support/outputtestdata.rb +0 -13
  41. data/spec/support/ziptestdata.rb +0 -13
  42. data/spec/unzip_spec.rb +0 -15
  43. data/spec/xbuild_spec.rb +0 -15
  44. data/spec/xunit_spec.rb +0 -168
  45. data/spec/yamlconfig_spec.rb +0 -49
  46. data/spec/zip_spec.rb +0 -104
@@ -1,104 +0,0 @@
1
- require 'spec_helper'
2
- require 'albacore/zipdirectory'
3
- require 'albacore/unzip'
4
- require 'ziptestdata'
5
-
6
- describe ZipDirectory, 'when zipping a directory of files' do
7
- before :each do
8
- zip = ZipDirectory.new
9
- zip.directories_to_zip ZipTestData.folder
10
- zip.output_file = "test.zip"
11
- zip.execute
12
- end
13
-
14
- it "should produce a zip file" do
15
- File.exist?(File.join(ZipTestData.folder, "test.zip")).should be_true
16
- end
17
- end
18
-
19
- describe ZipDirectory, 'when zipping a directory with string exclusions' do
20
- before :each do
21
- zip = ZipDirectory.new
22
- zip.directories_to_zip ZipTestData.folder
23
- zip.output_file = 'test.zip'
24
- zip.exclusions File.join(ZipTestData.folder, 'files', 'testfile.txt')
25
- zip.execute
26
-
27
- unzip = Unzip.new
28
- unzip.file = File.join(ZipTestData.folder, 'test.zip')
29
- unzip.destination = ZipTestData.output_folder
30
- unzip.execute
31
- end
32
-
33
- after :each do
34
- FileUtils.rm_rf ZipTestData.output_folder if File.exist? ZipTestData.output_folder
35
- end
36
-
37
- it 'should not zip files with the same name as any exclusions' do
38
- File.exist?(File.join(ZipTestData.output_folder, 'files', 'testfile.txt')).should be_false
39
- end
40
- end
41
-
42
- describe ZipDirectory, 'when zipping a directory of files with regexp exclusions' do
43
- before :each do
44
- zip = ZipDirectory.new
45
- zip.directories_to_zip ZipTestData.folder
46
- zip.output_file = 'test.zip'
47
- zip.exclusions /testfile/
48
- zip.execute
49
-
50
- unzip = Unzip.new
51
- unzip.file = File.join(ZipTestData.folder, 'test.zip')
52
- unzip.destination = ZipTestData.output_folder
53
- unzip.execute
54
- end
55
-
56
- after :each do
57
- FileUtils.rm_rf ZipTestData.output_folder if File.exist? ZipTestData.output_folder
58
- end
59
-
60
- it 'should not zip files that match any of the exclusions regexps' do
61
- File.exist?(File.join(ZipTestData.output_folder, 'files', 'testfile.txt')).should be_false
62
- end
63
- end
64
-
65
- describe ZipDirectory, 'when zipping a directory of files with glob string exclusions' do
66
- before :each do
67
- zip = ZipDirectory.new
68
- zip.directories_to_zip ZipTestData.folder
69
- zip.output_file = 'test.zip'
70
- zip.exclusions "**/subfolder/*"
71
- zip.execute
72
-
73
- unzip = Unzip.new
74
- unzip.file = File.join(ZipTestData.folder, 'test.zip')
75
- unzip.destination = ZipTestData.output_folder
76
- unzip.execute
77
- end
78
-
79
- after :each do
80
- FileUtils.rm_rf ZipTestData.output_folder if File.exists? ZipTestData.output_folder
81
- end
82
-
83
- it 'should not zip files that match the expanded globs' do
84
- File.exist?(File.join(ZipTestData.output_folder, 'files', 'subfolder', 'sub file.txt')).should be_false
85
- end
86
-
87
- it 'should zip the files that don\'t match the globs' do
88
- File.exist?(File.join(ZipTestData.output_folder, 'files', 'subfolder')).should be_true
89
- File.exist?(File.join(ZipTestData.output_folder, 'files', 'testfile.txt')).should be_true
90
- end
91
- end
92
-
93
- describe ZipDirectory, "when providing configuration" do
94
- let :zip do
95
- Albacore.configure do |config|
96
- config.zip.output_file = "configured"
97
- end
98
- zip = ZipDirectory.new
99
- end
100
-
101
- it "should use the configured values" do
102
- zip.output_file.should == "configured"
103
- end
104
- end