Skip to content

Instantly share code, notes, and snippets.

@methodmissing
Created August 23, 2009 02:00
Show Gist options
  • Select an option

  • Save methodmissing/173089 to your computer and use it in GitHub Desktop.

Select an option

Save methodmissing/173089 to your computer and use it in GitHub Desktop.
methodmissing:activesupport lourens$ git diff
diff --git a/activesupport/lib/active_support/core_ext/hash.rb b/activesupport/lib/active_support/core_ext/hash.rb
index 5014834..591363d 100644
--- a/activesupport/lib/active_support/core_ext/hash.rb
+++ b/activesupport/lib/active_support/core_ext/hash.rb
@@ -6,3 +6,5 @@ require 'active_support/core_ext/hash/indifferent_access'
require 'active_support/core_ext/hash/keys'
require 'active_support/core_ext/hash/reverse_merge'
require 'active_support/core_ext/hash/slice'
+
+require 'hwia_rails'
methodmissing:activesupport lourens$ rake
(in /Users/lourens/projects/rails/activesupport)
/opt/local/bin/ruby -w -I"lib:test" "/Users/lourens/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/buffered_logger_test.rb" "test/caching_test.rb" "test/callbacks_test.rb" "test/clean_backtrace_test.rb" "test/clean_logger_test.rb" "test/concern_test.rb" "test/core_ext/array_ext_test.rb" "test/core_ext/base64_ext_test.rb" "test/core_ext/blank_test.rb" "test/core_ext/boolean_ext_test.rb" "test/core_ext/cgi_ext_test.rb" "test/core_ext/class/attribute_accessor_test.rb" "test/core_ext/class/class_inheritable_attributes_test.rb" "test/core_ext/class/delegating_attributes_test.rb" "test/core_ext/class_test.rb" "test/core_ext/date_ext_test.rb" "test/core_ext/date_time_ext_test.rb" "test/core_ext/duplicable_test.rb" "test/core_ext/duration_test.rb" "test/core_ext/enumerable_test.rb" "test/core_ext/exception_test.rb" "test/core_ext/file_test.rb" "test/core_ext/float_ext_test.rb" "test/core_ext/hash_ext_test.rb" "test/core_ext/integer_ext_test.rb" "test/core_ext/kernel_test.rb" "test/core_ext/load_error_test.rb" "test/core_ext/module/attr_accessor_with_default_test.rb" "test/core_ext/module/attr_internal_test.rb" "test/core_ext/module/attribute_accessor_test.rb" "test/core_ext/module/attribute_aliasing_test.rb" "test/core_ext/module/synchronization_test.rb" "test/core_ext/module_test.rb" "test/core_ext/name_error_test.rb" "test/core_ext/nil_ext_test.rb" "test/core_ext/numeric_ext_test.rb" "test/core_ext/object_and_class_ext_test.rb" "test/core_ext/object_ext_test.rb" "test/core_ext/proc_test.rb" "test/core_ext/range_ext_test.rb" "test/core_ext/regexp_ext_test.rb" "test/core_ext/string_ext_test.rb" "test/core_ext/symbol_test.rb" "test/core_ext/time_ext_test.rb" "test/core_ext/time_with_zone_test.rb" "test/core_ext/uri_ext_test.rb" "test/dependencies_test.rb" "test/deprecation_test.rb" "test/flush_cache_on_private_memoization_test.rb" "test/gzip_test.rb" "test/i18n_test.rb" "test/inflector_test.rb" "test/isolation_test.rb" "test/json/decoding_test.rb" "test/json/encoding_test.rb" "test/memoizable_test.rb" "test/message_encryptor_test.rb" "test/message_verifier_test.rb" "test/multibyte_chars_test.rb" "test/multibyte_unicode_database_test.rb" "test/new_callback_inheritance_test.rb" "test/new_callbacks_test.rb" "test/option_merger_test.rb" "test/ordered_hash_test.rb" "test/ordered_options_test.rb" "test/rescuable_test.rb" "test/secure_random_test.rb" "test/string_inquirer_test.rb" "test/test_test.rb" "test/time_zone_test.rb" "test/whiny_nil_test.rb" "test/xml_mini/jdom_engine_test.rb" "test/xml_mini/nokogiri_engine_test.rb" "test/xml_mini/rexml_engine_test.rb"
warning: Insecure world writable dir /Users/lourens in PATH, mode 040753
Skipping memcached backed store tests. Start memcached and try again.
./test/core_ext/regexp_ext_test.rb:10: warning: ambiguous first argument; put parentheses or even spaces
Loaded suite /Users/lourens/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
...............................................................................................................................................................................................................................................................................................................................................................................................................E........F..............................................................................................................................................................................................................................................................................................................................P..................................................................................................................................................................................................................................................................................................................../test/../lib/active_support/core_ext/string/interpolation.rb:88: warning: too many arguments for format string
..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Finished in 8.388989 seconds.
1) Error:
test_indifferent_assorted(HashExtTest):
NoMethodError: undefined method `convert_key' for {"a"=>1, "b"=>2}:StrHash
./test/core_ext/hash_ext_test.rb:68:in `__send__'
./test/core_ext/hash_ext_test.rb:68:in `test_indifferent_assorted'
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.9.7/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.9.7/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
2) Failure:
test_indifferent_slice_inplace(HashExtTest)
[./test/core_ext/hash_ext_test.rb:364:in `test_indifferent_slice_inplace'
./test/core_ext/hash_ext_test.rb:361:in `each'
./test/core_ext/hash_ext_test.rb:361:in `test_indifferent_slice_inplace'
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.9.7/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.9.7/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run']:
<{:c=>10}> expected but was
<{:a=>"x", :b=>"y", :c=>10}>.
1780 tests, 7447 assertions, 1 failures, 1 errors
Pending Cases:
test_memorized_results_are_immutable at ./test/memoizable_test.rb, line 131
rake aborted!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment