Sha256: 589d22c5469bccb11d9233aee1e4b305299e7bafbdc234129b71eaddd2712ff5
Contents?: true
Size: 1.11 KB
Versions: 2
Compression:
Stored size: 1.11 KB
Contents
require 'rubygems' require 'build_engine' require 'fileutils' require 'test/unit' require 'mocha' require 'pathname' require 'stringio' require 'helper' module TaskLibraryMixin def build_engine @output = StringIO.new @output = STDOUT @output_logger = Logger.new(@output) return RubyBuildEngine.new(@output_logger) end def task_library TaskLibrary.from_tasks_file(build_engine, @tasks_file) end def assert_has_task (task) assert_respond_to task_library, task end end class MSBuildCommunityTasks < Test::Unit::TestCase include TaskLibraryMixin def test_loads_assembly_info_task assert_has_task :AssemblyInfo end def test_loads_vss_get_task assert_has_task :VssGet end def setup @tasks_file = "test/test-libraries/MSBuildCommunityTasks/MSBuild.Community.Tasks.Targets" end end class SBF #< Test::Unit::TestCase include TaskLibraryMixin def test_loads_biztak_2002_configure_task assert_has_task :Configure end def setup @tasks_file = "test/test-libraries/sbf/Microsoft.Sdc.Common.tasks" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ironbuildrake-0.1.1-ironruby | test/tests_other_libraries.rb |
ironbuildrake-0.1.0 | test/tests_other_libraries.rb |