test/unit/executable_test.rb in sprout-1.1.14.pre vs test/unit/executable_test.rb in sprout-1.1.15.pre
- old
+ new
@@ -234,14 +234,13 @@
end
end
should "add libraries as provided" do
as_a_unix_system do
+ Rake::Task.define_task 'abcd'
+ Rake::Task.define_task 'bin/OtherFileTask.swf'
- task 'abcd'
- task 'bin/OtherFileTask.swf'
-
asunit_lib = Sprout::Library.new :name => :swc, :pkg_name => :asunit4, :path => 'lib/AsUnit-4.4.2.swc'
Sprout::Library.register asunit_lib
t = library :asunit4
@@ -254,11 +253,11 @@
end
end
should "accept configuration with prereqs as a file task" do
as_a_unix_system do
- task :clean
- task :other_task
+ Rake::Task.define_task :clean
+ Rake::Task.define_task :other_task
@tool = mxmlc 'bin/SomeFile.swf' => [:clean, :other_task] do |t|
t.source_path << 'test/fixtures/executable/src'
t.input = 'test/fixtures/executable/src/Main.as'
end
assert_equal 'bin/SomeFile.swf', @tool.output