test/unit/executable_test.rb in sprout-1.0.22.pre vs test/unit/executable_test.rb in sprout-1.0.23.pre

- old
+ new

@@ -15,17 +15,17 @@ end should "add subclass params after those added by superclass" do @subclassed.superclass_param = 'A.txt' @subclassed.subclass_param = 'B.txt' - assert_equal '--superclass-param=A.txt --subclass-param=B.txt', @subclassed.to_shell + assert_equal '---superclass-param=A.txt ---subclass-param=B.txt', @subclassed.to_shell end should "accept boolean param" do @tool.boolean_param = true assert @tool.boolean_param - assert_equal "--boolean-param", @tool.to_shell + assert_equal "---boolean-param", @tool.to_shell end should "serialize to a hash" do @tool.boolean_param = true hash = @tool.to_hash @@ -39,11 +39,11 @@ end should "accept a string param" do @tool.string_param = "string1" assert_equal "string1", @tool.string_param - assert_equal "--string-param=string1", @tool.to_shell + assert_equal "---string-param=string1", @tool.to_shell end should "not share parameter values across instances" do first = FakeOtherExecutableTask.new second = FakeOtherExecutableTask.new @@ -55,11 +55,11 @@ should "accept strings param" do @tool.strings_param << 'string1' @tool.strings_param << 'string2' assert_equal ['string1', 'string2'], @tool.strings_param - assert_equal "--strings-param+=string1 --strings-param+=string2", @tool.to_shell + assert_equal "---strings-param+=string1 ---strings-param+=string2", @tool.to_shell end should "accept number param" do @tool.number_param = 1234 assert_equal 1234, @tool.number_param @@ -211,11 +211,11 @@ @tool = mxmlc 'bin/SomeFile.swf' 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 - assert_equal "--output=bin/SomeFile.swf --source-path+=test/fixtures/executable/src test/fixtures/executable/src/Main.as", @tool.to_shell + assert_equal "-output=bin/SomeFile.swf -source-path+=test/fixtures/executable/src test/fixtures/executable/src/Main.as", @tool.to_shell end end should "accept configuration with prereqs as a file task" do as_a_unix_system do @@ -223,18 +223,18 @@ @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 - assert_equal "--output=bin/SomeFile.swf --source-path+=test/fixtures/executable/src test/fixtures/executable/src/Main.as", @tool.to_shell + assert_equal "-output=bin/SomeFile.swf -source-path+=test/fixtures/executable/src test/fixtures/executable/src/Main.as", @tool.to_shell end end should "to_shell input" do as_a_unix_system do @tool.debug = true @tool.source_path << "test/fixtures/executable/src" - assert_equal "--debug --source-path+=test/fixtures/executable/src", @tool.to_shell + assert_equal "-debug -source-path+=test/fixtures/executable/src", @tool.to_shell end end should "execute the registered executable" do # Configure stub executable: