test/unit/executable_session_test.rb in sprout-1.1.10.pre vs test/unit/executable_session_test.rb in sprout-1.1.11.pre
- old
+ new
@@ -8,16 +8,22 @@
setup do
# Uncomment the following to see interactive sessions:
#Sprout.stdout = $stdout
#Sprout.stderr = $stderr
+ @test_result_file = File.join fixtures, 'executable', 'Result.xml'
end
+ teardown do
+ remove_file @test_result_file
+ end
+
should "execute without shell params" do
@fdb = Sprout::FDB.new
# Comment to hit real FDB:
@fdb.binary_path = File.join fixtures, 'executable', 'flex3sdk_gem', 'fdb'
+ @fdb.test_result_file = @test_result_file
@fdb.execute false
@fdb.run
# Uncomment if you are on OSX and want to
@@ -26,13 +32,17 @@
#@fdb.wait_for_prompt
@fdb.break "AsUnitRunner:12"
@fdb.continue
- @fdb.continue
+ #@fdb.continue
#@fdb.handle_user_input
@fdb.quit
+
+ assert_file @test_result_file do |content|
+ assert_match content, /Fake Content/
+ end
end
end
end