Skip to content

Instantly share code, notes, and snippets.

@luislavena
Created November 11, 2012 04:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luislavena/4053715 to your computer and use it in GitHub Desktop.
Save luislavena/4053715 to your computer and use it in GitHub Desktop.
diff --git a/test/test_rake_application_options.rb b/test/test_rake_application_options.rb
index 0ab3c1d..d08dd86 100644
--- a/test/test_rake_application_options.rb
+++ b/test/test_rake_application_options.rb
@@ -145,7 +145,8 @@ class TestRakeApplicationOptions < Rake::TestCase
end
def test_rakelib
- flags(['--rakelibdir', 'A:B:C'], ['--rakelibdir=A:B:C'], ['-R', 'A:B:C'], ['-RA:B:C']) do |opts|
+ dirs = %w(A B C).join(File::PATH_SEPARATOR)
+ flags(['--rakelibdir', dirs], ["--rakelibdir=#{dirs}"], ['-R', dirs], ["-R#{dirs}"]) do |opts|
assert_equal ['A', 'B', 'C'], opts.rakelib
end
end
diff --git a/test/test_rake_functional.rb b/test/test_rake_functional.rb
index 710b094..ad59f7b 100644
--- a/test/test_rake_functional.rb
+++ b/test/test_rake_functional.rb
@@ -435,7 +435,7 @@ class TestRakeFunctional < Rake::TestCase
assert_match(/ATEST/, @out)
refute_match(/BTEST/, @out)
else
- puts "\nWARNING: Signal detect seems broken on this system (#{__FILE__}:#{__LINE__})"
+ skip "Signal detect seems broken on this system"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment