test/unit/executable_test.rb in sprout-1.1.7.pre vs test/unit/executable_test.rb in sprout-1.1.10.pre

- old
+ new

@@ -42,10 +42,30 @@ @tool.string_param = "string1" assert_equal "string1", @tool.string_param assert_equal "---string-param=string1", @tool.to_shell end + should "create default stdout" do + assert_equal Sprout.stdout, @tool.stdout + end + + should "accept custom stdout" do + out = StringIO.new + @tool.stdout = out + assert_equal out, @tool.stdout + end + + should "create default stderr" do + assert_equal Sprout.stderr, @tool.stderr + end + + should "accept custom stderr" do + err = StringIO.new + @tool.stderr = err + assert_equal err, @tool.stderr + end + should "not share parameter values across instances" do first = FakeOtherExecutableTask.new second = FakeOtherExecutableTask.new first.string_param = 'value1' second.string_param = 'value2' @@ -168,9 +188,14 @@ as_a_unix_system do @tool.input = "test/fixtures/executable/src/Main.as" assert_equal "test/fixtures/executable/src/Main.as", @tool.input assert_equal "test/fixtures/executable/src/Main.as", @tool.to_shell end + end + + should "accept custom binary_path" do + @tool.binary_path = @mxmlc_executable + assert_equal @mxmlc_executable, @tool.binary_path end should "accept default gem name" do assert_equal 'flex4sdk', @tool.pkg_name end