Ruby on Rails Thursday, December 1, 2011

I tried to replace

self.fixture_class_names = self.fixture_class_names.merge(class_names)

with

self.fixture_class_names.merge!(class_names) # Why does this fail?

in rails source, and it failed 2 tests.

What is the difference between the two?
Could it have something to do with the fact that the fixture_class_names
hash has a block to generate values that were not assigned?
Or is this because fixture_class_names is a class attribute?

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment