Hi, I'm new here. I just cloned the rails git repository and tried to
run all tests without making any changes. Some tests failed, like
below. Is anyone else seeing this or is it something with my
environment? I'm on Mac OS 10.5, ruby 1.8.7.
1) Error:
test_error_messages_for_given_a_header_option_it_does_not_translate_header_message(ActiveRecordHelperI18nTest):
ArgumentError: wrong number of arguments (2 for 1)
./test/../lib/action_view/helpers/active_record_helper.rb:174:in
`respond_to?'
./test/../lib/action_view/helpers/active_record_helper.rb:174:in
`flatten'
./test/../lib/action_view/helpers/active_record_helper.rb:174:in
`error_messages_for'
./test/template/active_record_helper_i18n_test.rb:19:in
`test_error_messages_for_given_a_header_option_it_does_not_translate_header_message'
./test/../../activesupport/lib/active_support/testing/
setup_and_teardown.rb:94:in `__send__'
./test/../../activesupport/lib/active_support/testing/
setup_and_teardown.rb:94:in `run'
I have seen similar issues with ruby 1.8.7, it's always related to
coersing things to arrays. The ruby C code for array sends a second
param through, which is in the language spec just not widely used.
Does uninstalling mocha, or using 1.8.6 make all of them go away? If
so I'll try and dig out my old mocha patches.
The respond_to_fix_2.diff should get rid of any errors you are seeing
simply from running 1.6.7 and mocha.
There may be other unrelated errors too, but this is all I needed last
time I was testing against 1.6.7. This was however about 2 months ago,
and I've not had 1.6.7 at the new job, so your mileage may vary.