Displaying 1 result from an estimated 1 matches for "all_paths".
Did you mean:
add_paths
2007 Aug 18
0
Tests for render when changing view_paths
...{:partial => ''application/pod'', :locals => {:the_value
=> "sent value"}, :layout => ''application/layout'' }
original_paths = ["/path/to/rails_app/app/views"]
extra_paths = ["/path/to/rails_app/spec/views"]
all_paths = original_paths + extra_paths
self.should_receive(:view_paths).and_return(original_paths,
original_paths, all_paths)
self.should_receive(:view_paths=).with(all_paths).once.ordered
self.should_receive(:view_paths=).with(original_paths).once.ordered
self.should_receive(:render)...