aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-05-31 22:43:53 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-05-31 22:43:53 +0000
commitd31830cf9cc863ed2f98c2d4cb90cf0e5d93e73e (patch)
treef9c47331207411fea435c5057dea209e869f5c13 /activesupport/test
parent05a17dc6b57e77171976a009b331511eae95200f (diff)
downloadrails-d31830cf9cc863ed2f98c2d4cb90cf0e5d93e73e.tar.gz
rails-d31830cf9cc863ed2f98c2d4cb90cf0e5d93e73e.tar.bz2
rails-d31830cf9cc863ed2f98c2d4cb90cf0e5d93e73e.zip
fix test warnings
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4386 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/core_ext/kernel_test.rb2
-rw-r--r--activesupport/test/core_ext/module_test.rb4
2 files changed, 4 insertions, 2 deletions
diff --git a/activesupport/test/core_ext/kernel_test.rb b/activesupport/test/core_ext/kernel_test.rb
index 60c3d1ba86..44e3b87241 100644
--- a/activesupport/test/core_ext/kernel_test.rb
+++ b/activesupport/test/core_ext/kernel_test.rb
@@ -34,6 +34,8 @@ class KernelTest < Test::Unit::TestCase
old_stderr_position = STDERR.tell
silence_stderr { STDERR.puts 'hello world' }
assert_equal old_stderr_position, STDERR.tell
+ rescue Errno::ESPIPE
+ # Skip if we can't STDERR.tell
end
def test_silence_stderr_with_return_value
diff --git a/activesupport/test/core_ext/module_test.rb b/activesupport/test/core_ext/module_test.rb
index 06dd44cd2d..bd51aa11c3 100644
--- a/activesupport/test/core_ext/module_test.rb
+++ b/activesupport/test/core_ext/module_test.rb
@@ -127,7 +127,7 @@ class MethodAliasingTest < Test::Unit::TestCase
end
def test_alias_method_chain
- assert @instance.respond_to? :bar
+ assert @instance.respond_to?(:bar)
feature_aliases = [:bar_with_baz, :bar_without_baz]
feature_aliases.each do |method|
@@ -152,7 +152,7 @@ class MethodAliasingTest < Test::Unit::TestCase
FooClassWithBarMethod.send(:include, BarMethodAliaser)
FooClassWithBarMethod.alias_method_chain :quux!, :baz
assert @instance.respond_to?(:quux_with_baz)
-
+
assert_equal 'quux_with_baz', @instance.quux!
assert_equal 'quux', @instance.quux_without_baz
end