albacore 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. data/.autotest +4 -4
  2. data/.bundle/config +2 -2
  3. data/.rvmrc +1 -1
  4. data/Gemfile +12 -12
  5. data/README.markdown +92 -68
  6. data/VERSION +1 -1
  7. data/lib/albacore.rb +9 -9
  8. data/lib/albacore/albacoretask.rb +50 -50
  9. data/lib/albacore/aspnetcompiler.rb +58 -58
  10. data/lib/albacore/assemblyinfo.rb +140 -140
  11. data/lib/albacore/assemblyinfolanguages/cppcliengine.rb +17 -0
  12. data/lib/albacore/assemblyinfolanguages/csharpengine.rb +18 -18
  13. data/lib/albacore/assemblyinfolanguages/vbnetengine.rb +18 -18
  14. data/lib/albacore/config/aspnetcompilerconfig.rb +29 -29
  15. data/lib/albacore/config/assemblyinfoconfig.rb +13 -13
  16. data/lib/albacore/config/config.rb +22 -22
  17. data/lib/albacore/config/cscconfig.rb +28 -28
  18. data/lib/albacore/config/docuconfig.rb +23 -23
  19. data/lib/albacore/config/execconfig.rb +15 -15
  20. data/lib/albacore/config/fluentmigratorrunnerconfig.rb +15 -15
  21. data/lib/albacore/config/msbuildconfig.rb +29 -29
  22. data/lib/albacore/config/mspectestrunnerconfig.rb +15 -15
  23. data/lib/albacore/config/mstesttestrunnerconfig.rb +15 -15
  24. data/lib/albacore/config/nantconfig.rb +15 -15
  25. data/lib/albacore/config/nchurnconfig.rb +15 -15
  26. data/lib/albacore/config/ncoverconsoleconfig.rb +15 -15
  27. data/lib/albacore/config/ncoverreportconfig.rb +15 -15
  28. data/lib/albacore/config/ndependconfig.rb +15 -15
  29. data/lib/albacore/config/netversion.rb +21 -21
  30. data/lib/albacore/config/nugetpackconfig.rb +3 -3
  31. data/lib/albacore/config/nugetpublishconfig.rb +19 -0
  32. data/lib/albacore/config/nugetpushconfig.rb +19 -0
  33. data/lib/albacore/config/nunittestrunnerconfig.rb +14 -14
  34. data/lib/albacore/config/specflowreportconfig.rb +24 -24
  35. data/lib/albacore/config/sqlcmdconfig.rb +15 -15
  36. data/lib/albacore/config/unzipconfig.rb +15 -15
  37. data/lib/albacore/config/vssgetconfig.rb +14 -0
  38. data/lib/albacore/config/xbuildconfig.rb +15 -15
  39. data/lib/albacore/config/xunittestrunnerconfig.rb +15 -15
  40. data/lib/albacore/config/zipdirectoryconfig.rb +15 -15
  41. data/lib/albacore/csc.rb +66 -62
  42. data/lib/albacore/docu.rb +41 -41
  43. data/lib/albacore/exec.rb +18 -18
  44. data/lib/albacore/fluentmigratorrunner.rb +51 -46
  45. data/lib/albacore/msbuild.rb +55 -55
  46. data/lib/albacore/mspectestrunner.rb +50 -50
  47. data/lib/albacore/mstesttestrunner.rb +43 -43
  48. data/lib/albacore/nant.rb +38 -38
  49. data/lib/albacore/nchurn.rb +74 -74
  50. data/lib/albacore/ncoverconsole.rb +68 -68
  51. data/lib/albacore/ncoverreport.rb +62 -62
  52. data/lib/albacore/ncoverreports/assemblyfilter.rb +9 -9
  53. data/lib/albacore/ncoverreports/branchcoverage.rb +9 -9
  54. data/lib/albacore/ncoverreports/classfilter.rb +9 -9
  55. data/lib/albacore/ncoverreports/codecoveragebase.rb +25 -25
  56. data/lib/albacore/ncoverreports/cyclomaticcomplexity.rb +23 -23
  57. data/lib/albacore/ncoverreports/documentfilter.rb +9 -9
  58. data/lib/albacore/ncoverreports/fullcoveragereport.rb +13 -13
  59. data/lib/albacore/ncoverreports/methodcoverage.rb +9 -9
  60. data/lib/albacore/ncoverreports/methodfilter.rb +9 -9
  61. data/lib/albacore/ncoverreports/namespacefilter.rb +9 -9
  62. data/lib/albacore/ncoverreports/reportfilterbase.rb +26 -26
  63. data/lib/albacore/ncoverreports/summaryreport.rb +18 -18
  64. data/lib/albacore/ncoverreports/symbolcoverage.rb +9 -9
  65. data/lib/albacore/ndepend.rb +33 -33
  66. data/lib/albacore/nugetpublish.rb +47 -0
  67. data/lib/albacore/nugetpush.rb +46 -0
  68. data/lib/albacore/nunittestrunner.rb +41 -41
  69. data/lib/albacore/nuspec.rb +133 -109
  70. data/lib/albacore/output.rb +99 -99
  71. data/lib/albacore/plink.rb +47 -47
  72. data/lib/albacore/specflowreport.rb +62 -62
  73. data/lib/albacore/sqlcmd.rb +80 -80
  74. data/lib/albacore/support/attrmethods.rb +33 -33
  75. data/lib/albacore/support/createtask.rb +50 -30
  76. data/lib/albacore/support/failure.rb +15 -15
  77. data/lib/albacore/support/logging.rb +38 -38
  78. data/lib/albacore/support/openstruct.rb +13 -13
  79. data/lib/albacore/support/runcommand.rb +45 -45
  80. data/lib/albacore/support/supportlinux.rb +23 -23
  81. data/lib/albacore/support/updateattributes.rb +13 -13
  82. data/lib/albacore/support/yamlconfig.rb +18 -18
  83. data/lib/albacore/unzip.rb +28 -28
  84. data/lib/albacore/vssget.rb +44 -0
  85. data/lib/albacore/xbuild.rb +54 -54
  86. data/lib/albacore/xunittestrunner.rb +52 -52
  87. data/lib/albacore/zipdirectory.rb +105 -105
  88. data/rakefile.rb +297 -297
  89. data/spec/albacoremodel_spec.rb +53 -53
  90. data/spec/assemblyinfo_spec.rb +541 -541
  91. data/spec/attrmethods_spec.rb +136 -136
  92. data/spec/config_spec.rb +34 -34
  93. data/spec/createtask_spec.rb +236 -236
  94. data/spec/csc_spec.rb +253 -253
  95. data/spec/docu_spec.rb +109 -109
  96. data/spec/exec_spec.rb +45 -45
  97. data/spec/fluentmigratorrunner_spec.rb +254 -185
  98. data/spec/msbuild_spec.rb +215 -215
  99. data/spec/mspec_spec.rb +28 -28
  100. data/spec/mstesttestrunner_spec.rb +142 -142
  101. data/spec/nant_spec.rb +110 -110
  102. data/spec/nchurn_spec.rb +75 -75
  103. data/spec/ncoverconsole_spec.rb +353 -353
  104. data/spec/ncoverreport_spec.rb +619 -619
  105. data/spec/ndepend_spec.rb +72 -72
  106. data/spec/nunittestrunner_spec.rb +122 -122
  107. data/spec/nuspec_spec.rb +78 -78
  108. data/spec/patches/docu_patch.rb +12 -12
  109. data/spec/patches/fail_patch.rb +8 -8
  110. data/spec/patches/system_patch.rb +20 -20
  111. data/spec/plink_spec.rb +62 -62
  112. data/spec/runcommand_spec.rb +94 -94
  113. data/spec/spec_helper.rb +17 -17
  114. data/spec/specflowreport_spec.rb +146 -146
  115. data/spec/sqlcmd_spec.rb +334 -334
  116. data/spec/support/assemblyinfotester.rb +51 -51
  117. data/spec/support/ironruby_validator.rb +26 -26
  118. data/spec/support/msbuildtestdata.rb +32 -32
  119. data/spec/support/nanttestdata.rb +33 -33
  120. data/spec/support/ncoverconsoletestdata.rb +19 -19
  121. data/spec/support/ncoverreporttestdata.rb +26 -26
  122. data/spec/support/nokogiri_validator.rb +15 -15
  123. data/spec/support/outputtestdata.rb +12 -12
  124. data/spec/support/ziptestdata.rb +12 -12
  125. data/spec/unzip_spec.rb +15 -15
  126. data/spec/xbuild_spec.rb +15 -15
  127. data/spec/xunit_spec.rb +168 -168
  128. data/spec/yamlconfig_spec.rb +49 -49
  129. data/spec/zip_spec.rb +104 -104
  130. data/watchrtesting.rb +8 -8
  131. metadata +15 -119
@@ -1,15 +1,15 @@
1
- require 'spec_helper'
2
- require 'albacore/unzip'
3
-
4
- describe Unzip, "when providing configuration" do
5
- let :uz do
6
- Albacore.configure do |config|
7
- config.unzip.file = "configured"
8
- end
9
- uz = Unzip.new
10
- end
11
-
12
- it "should use the configured values" do
13
- uz.file.should == "configured"
14
- end
15
- end
1
+ require 'spec_helper'
2
+ require 'albacore/unzip'
3
+
4
+ describe Unzip, "when providing configuration" do
5
+ let :uz do
6
+ Albacore.configure do |config|
7
+ config.unzip.file = "configured"
8
+ end
9
+ uz = Unzip.new
10
+ end
11
+
12
+ it "should use the configured values" do
13
+ uz.file.should == "configured"
14
+ end
15
+ end
@@ -1,15 +1,15 @@
1
- require 'spec_helper'
2
- require 'albacore/xbuild'
3
-
4
- describe XBuild, "when providing configuration values" do
5
- let :xbuild do
6
- Albacore.configure do |config|
7
- config.xbuild.command = "configured"
8
- end
9
- xbuild = XBuild.new
10
- end
11
-
12
- it "should use the configured values" do
13
- xbuild.command.should == "configured"
14
- end
15
- end
1
+ require 'spec_helper'
2
+ require 'albacore/xbuild'
3
+
4
+ describe XBuild, "when providing configuration values" do
5
+ let :xbuild do
6
+ Albacore.configure do |config|
7
+ config.xbuild.command = "configured"
8
+ end
9
+ xbuild = XBuild.new
10
+ end
11
+
12
+ it "should use the configured values" do
13
+ xbuild.command.should == "configured"
14
+ end
15
+ end
@@ -1,168 +1,168 @@
1
- require 'spec_helper'
2
- require 'albacore/xunittestrunner'
3
-
4
- shared_examples_for "xunit paths" do
5
- before :all do
6
- @xunitpath = File.join(File.dirname(__FILE__), 'support', 'Tools', 'XUnit-v1.5', 'xunit.console.exe')
7
- @test_assembly = File.join(File.expand_path(File.dirname(__FILE__)), 'support', 'CodeCoverage', 'xunit', 'assemblies', 'TestSolution.XUnitTests.dll')
8
- @output_option = "/out=xunit.results.html"
9
- @working_dir =File.join(File.dirname(__FILE__), 'support','xunit')
10
- @html_output = File.join(@working_dir,'TestSolution.XUnitTests.dll.html')
11
- end
12
- end
13
-
14
- describe XUnitTestRunner, "the command parameters for an xunit runner" do
15
- it_should_behave_like "xunit paths"
16
- before :all do
17
- xunit = XUnitTestRunner.new(@xunitpath)
18
- xunit.assembly = @test_assembly
19
- xunit.options @output_option
20
-
21
- @command_parameters = xunit.get_command_parameters
22
- end
23
-
24
- it "should not include the path to the command" do
25
- @command_parameters.should_not include(@xunitpath)
26
- end
27
-
28
- it "should include the list of options" do
29
- @command_parameters.should include(@output_option)
30
- end
31
- end
32
-
33
- describe XUnitTestRunner, "the command line string for an xunit runner" do
34
- it_should_behave_like "xunit paths"
35
- before :all do
36
- xunit = XUnitTestRunner.new(@xunitpath)
37
- xunit.assembly = @test_assembly
38
- xunit.options @output_option
39
-
40
- @command_line = xunit.get_command_line
41
- @command_parameters = xunit.get_command_parameters.join(" ")
42
- end
43
-
44
- it "should start with the path to the command" do
45
- @command_line.split(" ").first.should == @xunitpath
46
- end
47
-
48
- it "should include the command parameters" do
49
- @command_line.should include(@command_parameters)
50
- end
51
- end
52
-
53
- describe XUnitTestRunner, "when configured correctly" do
54
- it_should_behave_like "xunit paths"
55
- before :all do
56
- xunit = XUnitTestRunner.new(@xunitpath)
57
- xunit.assembly = @test_assembly
58
- xunit.options '/noshadow'
59
- xunit.extend(FailPatch)
60
- xunit.log_level = :verbose
61
-
62
- xunit.execute
63
- end
64
-
65
- it "should execute" do
66
- $task_failed.should be_false
67
- end
68
- end
69
-
70
- describe XUnitTestRunner, "when multiple assemblies are passed to xunit runner" do
71
- it_should_behave_like "xunit paths"
72
- before :all do
73
- xunit = XUnitTestRunner.new(@xunitpath)
74
- xunit.assemblies = @test_assembly, @test_assembly
75
- xunit.options '/noshadow'
76
- xunit.extend(FailPatch)
77
- xunit.log_level = :verbose
78
-
79
- xunit.execute
80
- end
81
-
82
- it "should execute" do
83
- $task_failed.should be_false
84
- end
85
- end
86
-
87
- describe XUnitTestRunner, "when zero assemblies are passed to xunit runner" do
88
- it_should_behave_like "xunit paths"
89
- before :all do
90
- xunit = XUnitTestRunner.new(@xunitpath)
91
- xunit.options '/noshadow'
92
- xunit.extend(FailPatch)
93
-
94
- xunit.execute
95
- end
96
-
97
- it "should fail" do
98
- $task_failed.should be_true
99
- end
100
- end
101
-
102
- describe XUnitTestRunner, "when html_output is specified" do
103
- it_should_behave_like "xunit paths"
104
- before :each do
105
- FileUtils.mkdir @working_dir unless File.exist?(@working_dir)
106
- xunit = XUnitTestRunner.new(@xunitpath)
107
- xunit.assembly = @test_assembly
108
- xunit.html_output = File.dirname(@html_output)
109
- xunit.extend(FailPatch)
110
-
111
- xunit.execute
112
- end
113
-
114
- it "should execute" do
115
- $task_failed.should be_false
116
- end
117
-
118
- it "should write output html" do
119
- sleep(2)
120
- File.exist?(@html_output).should be_true
121
- end
122
-
123
- after:each do
124
- FileUtils.rm_r @working_dir if File.exist? @working_dir
125
- end
126
- end
127
-
128
- describe XUnitTestRunner, "when html_output is not a directory" do
129
- it_should_behave_like "xunit paths"
130
- before :each do
131
- FileUtils.mkdir @working_dir unless File.exist?(@working_dir)
132
- strio = StringIO.new
133
- xunit = XUnitTestRunner.new(@xunitpath)
134
- xunit.log_level = :verbose
135
- xunit.log_device = strio
136
- xunit.assembly = @test_assembly
137
- xunit.html_output = @html_output
138
- xunit.extend(FailPatch)
139
-
140
- xunit.execute
141
- @log_data = strio.string
142
- end
143
-
144
- it "should fail" do
145
- $task_failed.should be_true
146
- end
147
-
148
- it "should log a message" do
149
- @log_data.should include('Directory is required for html_output')
150
- end
151
-
152
- after:each do
153
- FileUtils.rm_r @working_dir if File.exist? @working_dir
154
- end
155
- end
156
-
157
- describe XUnitTestRunner, "when providing configuration" do
158
- let :xunit do
159
- Albacore.configure do |config|
160
- config.xunit.command = "configured"
161
- end
162
- xunit = XUnitTestRunner.new
163
- end
164
-
165
- it "should use the configured values" do
166
- xunit.command.should == "configured"
167
- end
168
- end
1
+ require 'spec_helper'
2
+ require 'albacore/xunittestrunner'
3
+
4
+ shared_examples_for "xunit paths" do
5
+ before :all do
6
+ @xunitpath = File.join(File.dirname(__FILE__), 'support', 'Tools', 'XUnit-v1.5', 'xunit.console.exe')
7
+ @test_assembly = File.join(File.expand_path(File.dirname(__FILE__)), 'support', 'CodeCoverage', 'xunit', 'assemblies', 'TestSolution.XUnitTests.dll')
8
+ @output_option = "/out=xunit.results.html"
9
+ @working_dir =File.join(File.dirname(__FILE__), 'support','xunit')
10
+ @html_output = File.join(@working_dir,'TestSolution.XUnitTests.dll.html')
11
+ end
12
+ end
13
+
14
+ describe XUnitTestRunner, "the command parameters for an xunit runner" do
15
+ it_should_behave_like "xunit paths"
16
+ before :all do
17
+ xunit = XUnitTestRunner.new(@xunitpath)
18
+ xunit.assembly = @test_assembly
19
+ xunit.options @output_option
20
+
21
+ @command_parameters = xunit.get_command_parameters
22
+ end
23
+
24
+ it "should not include the path to the command" do
25
+ @command_parameters.should_not include(@xunitpath)
26
+ end
27
+
28
+ it "should include the list of options" do
29
+ @command_parameters.should include(@output_option)
30
+ end
31
+ end
32
+
33
+ describe XUnitTestRunner, "the command line string for an xunit runner" do
34
+ it_should_behave_like "xunit paths"
35
+ before :all do
36
+ xunit = XUnitTestRunner.new(@xunitpath)
37
+ xunit.assembly = @test_assembly
38
+ xunit.options @output_option
39
+
40
+ @command_line = xunit.get_command_line
41
+ @command_parameters = xunit.get_command_parameters.join(" ")
42
+ end
43
+
44
+ it "should start with the path to the command" do
45
+ @command_line.split(" ").first.should == @xunitpath
46
+ end
47
+
48
+ it "should include the command parameters" do
49
+ @command_line.should include(@command_parameters)
50
+ end
51
+ end
52
+
53
+ describe XUnitTestRunner, "when configured correctly" do
54
+ it_should_behave_like "xunit paths"
55
+ before :all do
56
+ xunit = XUnitTestRunner.new(@xunitpath)
57
+ xunit.assembly = @test_assembly
58
+ xunit.options '/noshadow'
59
+ xunit.extend(FailPatch)
60
+ xunit.log_level = :verbose
61
+
62
+ xunit.execute
63
+ end
64
+
65
+ it "should execute" do
66
+ $task_failed.should be_false
67
+ end
68
+ end
69
+
70
+ describe XUnitTestRunner, "when multiple assemblies are passed to xunit runner" do
71
+ it_should_behave_like "xunit paths"
72
+ before :all do
73
+ xunit = XUnitTestRunner.new(@xunitpath)
74
+ xunit.assemblies = @test_assembly, @test_assembly
75
+ xunit.options '/noshadow'
76
+ xunit.extend(FailPatch)
77
+ xunit.log_level = :verbose
78
+
79
+ xunit.execute
80
+ end
81
+
82
+ it "should execute" do
83
+ $task_failed.should be_false
84
+ end
85
+ end
86
+
87
+ describe XUnitTestRunner, "when zero assemblies are passed to xunit runner" do
88
+ it_should_behave_like "xunit paths"
89
+ before :all do
90
+ xunit = XUnitTestRunner.new(@xunitpath)
91
+ xunit.options '/noshadow'
92
+ xunit.extend(FailPatch)
93
+
94
+ xunit.execute
95
+ end
96
+
97
+ it "should fail" do
98
+ $task_failed.should be_true
99
+ end
100
+ end
101
+
102
+ describe XUnitTestRunner, "when html_output is specified" do
103
+ it_should_behave_like "xunit paths"
104
+ before :each do
105
+ FileUtils.mkdir @working_dir unless File.exist?(@working_dir)
106
+ xunit = XUnitTestRunner.new(@xunitpath)
107
+ xunit.assembly = @test_assembly
108
+ xunit.html_output = File.dirname(@html_output)
109
+ xunit.extend(FailPatch)
110
+
111
+ xunit.execute
112
+ end
113
+
114
+ it "should execute" do
115
+ $task_failed.should be_false
116
+ end
117
+
118
+ it "should write output html" do
119
+ sleep(2)
120
+ File.exist?(@html_output).should be_true
121
+ end
122
+
123
+ after:each do
124
+ FileUtils.rm_r @working_dir if File.exist? @working_dir
125
+ end
126
+ end
127
+
128
+ describe XUnitTestRunner, "when html_output is not a directory" do
129
+ it_should_behave_like "xunit paths"
130
+ before :each do
131
+ FileUtils.mkdir @working_dir unless File.exist?(@working_dir)
132
+ strio = StringIO.new
133
+ xunit = XUnitTestRunner.new(@xunitpath)
134
+ xunit.log_level = :verbose
135
+ xunit.log_device = strio
136
+ xunit.assembly = @test_assembly
137
+ xunit.html_output = @html_output
138
+ xunit.extend(FailPatch)
139
+
140
+ xunit.execute
141
+ @log_data = strio.string
142
+ end
143
+
144
+ it "should fail" do
145
+ $task_failed.should be_true
146
+ end
147
+
148
+ it "should log a message" do
149
+ @log_data.should include('Directory is required for html_output')
150
+ end
151
+
152
+ after:each do
153
+ FileUtils.rm_r @working_dir if File.exist? @working_dir
154
+ end
155
+ end
156
+
157
+ describe XUnitTestRunner, "when providing configuration" do
158
+ let :xunit do
159
+ Albacore.configure do |config|
160
+ config.xunit.command = "configured"
161
+ end
162
+ xunit = XUnitTestRunner.new
163
+ end
164
+
165
+ it "should use the configured values" do
166
+ xunit.command.should == "configured"
167
+ end
168
+ end
@@ -1,49 +1,49 @@
1
- require 'spec_helper'
2
- require 'albacore/albacoretask'
3
-
4
- class ::YamlTest
5
- include Albacore::Task
6
- attr_accessor :some_name, :another_name, :a_hash, :what_ever
7
- end
8
-
9
- describe "when configuring with yaml" do
10
- before :all do
11
- @yml = YamlTest.new
12
- @yml.configure File.join(File.dirname(__FILE__), 'support', 'test.yml')
13
- end
14
-
15
- it "should set the value of some_name" do
16
- @yml.some_name.should == "some value"
17
- end
18
-
19
- it "should create and set the value of another_name" do
20
- @yml.another_name.should == "another value"
21
- end
22
-
23
- it "should allow hash tables" do
24
- @yml.a_hash.length.should == 2
25
- @yml.a_hash['name'].should == "value"
26
- @yml.a_hash['foo'].should == "bar"
27
- end
28
-
29
- it "should allow symbols" do
30
- @yml.what_ever.should == :a_symbol
31
- end
32
- end
33
-
34
- describe "when specifying a yaml config folder and configuring" do
35
- class ::YAML_AutoConfig_Test
36
- include Albacore::Task
37
- attr_accessor :some_attribute
38
- end
39
-
40
- before :all do
41
- Albacore.configure.yaml_config_folder = File.join(File.dirname(__FILE__), 'support', 'yamlconfig')
42
- @yamltest = YAML_AutoConfig_Test.new
43
- @yamltest.load_config_by_task_name("yaml_autoconfig_test")
44
- end
45
-
46
- it "should automatically configure the class from the yaml file in the specified folder" do
47
- @yamltest.some_attribute.should == "this value was loaded from a folder, specified by Albacore.configure.yaml_config_folder"
48
- end
49
- end
1
+ require 'spec_helper'
2
+ require 'albacore/albacoretask'
3
+
4
+ class ::YamlTest
5
+ include Albacore::Task
6
+ attr_accessor :some_name, :another_name, :a_hash, :what_ever
7
+ end
8
+
9
+ describe "when configuring with yaml" do
10
+ before :all do
11
+ @yml = YamlTest.new
12
+ @yml.configure File.join(File.dirname(__FILE__), 'support', 'test.yml')
13
+ end
14
+
15
+ it "should set the value of some_name" do
16
+ @yml.some_name.should == "some value"
17
+ end
18
+
19
+ it "should create and set the value of another_name" do
20
+ @yml.another_name.should == "another value"
21
+ end
22
+
23
+ it "should allow hash tables" do
24
+ @yml.a_hash.length.should == 2
25
+ @yml.a_hash['name'].should == "value"
26
+ @yml.a_hash['foo'].should == "bar"
27
+ end
28
+
29
+ it "should allow symbols" do
30
+ @yml.what_ever.should == :a_symbol
31
+ end
32
+ end
33
+
34
+ describe "when specifying a yaml config folder and configuring" do
35
+ class ::YAML_AutoConfig_Test
36
+ include Albacore::Task
37
+ attr_accessor :some_attribute
38
+ end
39
+
40
+ before :all do
41
+ Albacore.configure.yaml_config_folder = File.join(File.dirname(__FILE__), 'support', 'yamlconfig')
42
+ @yamltest = YAML_AutoConfig_Test.new
43
+ @yamltest.load_config_by_task_name("yaml_autoconfig_test")
44
+ end
45
+
46
+ it "should automatically configure the class from the yaml file in the specified folder" do
47
+ @yamltest.some_attribute.should == "this value was loaded from a folder, specified by Albacore.configure.yaml_config_folder"
48
+ end
49
+ end