Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 7190

Show
Ignore:
Timestamp:
07/17/07 09:44:03 (1 year ago)
Author:
nzkoz
Message:

Introduce fake_models.rb to avoid platform-specific code. [mpalmer] Closes #8714

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/test/controller/new_render_test.rb

    r6826 r7190  
    11require File.dirname(__FILE__) + '/../abstract_unit' 
    2  
    3 class Customer < Struct.new(:name, :id) 
    4   def to_param 
    5     id.to_s 
    6   end 
    7 end 
     2require File.dirname(__FILE__) + '/fake_models' 
    83 
    94class CustomersController < ActionController::Base 
  • trunk/actionpack/test/controller/render_test.rb

    r7158 r7190  
    11require File.dirname(__FILE__) + '/../abstract_unit' 
    2  
    3 unless defined?(Customer) 
    4   Customer = Struct.new("Customer", :name) 
    5 end 
     2require File.dirname(__FILE__) + '/fake_models' 
    63 
    74module Fun