Ticket #8714: fix_actionpack_tests.patch
| File fix_actionpack_tests.patch, 1.3 kB (added by mpalmer, 2 years ago) |
|---|
-
actionpack/test/controller/render_test.rb
old new 1 1 require File.dirname(__FILE__) + '/../abstract_unit' 2 require File.dirname(__FILE__) + '/fake_models' 2 3 3 unless defined?(Customer)4 Customer = Struct.new("Customer", :name)5 end6 7 4 module Fun 8 5 class GamesController < ActionController::Base 9 6 def hello_world -
actionpack/test/controller/new_render_test.rb
old new 1 1 require File.dirname(__FILE__) + '/../abstract_unit' 2 require File.dirname(__FILE__) + '/fake_models' 2 3 3 class Customer < Struct.new(:name, :id)4 def to_param5 id.to_s6 end7 end8 9 4 class CustomersController < ActionController::Base 10 5 end 11 6 -
actionpack/test/controller/fake_models.rb
old new 1 class Customer < Struct.new(:name, :id) 2 def to_param 3 id.to_s 4 end 5 end