search for: render_partial_with_record_identif

Displaying 1 result from an estimated 1 matches for "render_partial_with_record_identif".

2006 Dec 13
4
RSpec and simply_helpful
...like this: <%= render :partial => @shifts %> I''ve done some experimentation, and it seems that RSpec''s implementation of ''render_partial'' is rewriting the partial path trying to be smart about it but breaking things. The partial_path, once it reaches render_partial_with_record_identification, ends up being "/shifts//#<Spec::Mocks::Mock:0x28450cc>". This is caused by the method being overwritten in rspec_on_rails/lib/extensions/action_view/base.rb. I suggest that there be a second condition attached to the unless statement on line 5, to ensure that the partial_p...