Changeset 16

Show
Ignore:
Timestamp:
09/28/2006 08:39:45 AM (2 years ago)
Author:
matthew
Message:

A couple of changes to tests for Rails Edge... still getting some
routing failures, though. :|

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/auto-admin/test/functional_tests.rb

    r1 r16  
    102102    assert_tag :tag => 'input', :attributes => { :checked => true, :id => 'customer_active_true', :name => 'customer[active]', :value => 'true' } 
    103103    assert_tag :tag => 'input', :attributes => { :checked => false, :id => 'customer_active_false', :name => 'customer[active]', :value => 'false' } 
    104     assert_tag :tag => 'div', :child => { :content => ' True' } 
     104    assert_tag :tag => 'div', :child => { :content => ' True ' } 
    105105    assert_tag :tag => 'div', :child => { :content => ' False' } 
    106106 
     
    169169    assert_tag :tag => 'input', :attributes => { :checked => true, :id => 'customer_active_true', :name => 'customer[active]', :value => 'true' } 
    170170    assert_tag :tag => 'input', :attributes => { :checked => false, :id => 'customer_active_false', :name => 'customer[active]', :value => 'false' } 
    171     assert_tag :tag => 'div', :child => { :content => ' Active' } 
     171    assert_tag :tag => 'div', :child => { :content => ' Active ' } 
    172172    assert_tag :tag => 'div', :child => { :content => ' Suspended' } 
    173173 
  • trunk/auto-admin/test/routing_tests.rb

    r1 r16  
    2828  # Standard model-less action 
    2929  def test_login 
    30     opts = { :controller => 'auto_admin', :action => 'login'
     30    opts = { :controller => 'auto_admin', :action => 'login', :model => nil
    3131    assert_routing url_for( opts ), opts 
    3232  end 
     
    3434  # Model without ID (default action) 
    3535  def test_list 
    36     opts = { :controller => 'auto_admin', :action => 'list', :model => 'user'
     36    opts = { :controller => 'auto_admin', :action => 'list', :model => 'user', :id => nil
    3737    assert_routing url_for( opts ), opts 
    3838  end 
     
    4040  # Model with ID (default action) 
    4141  def test_edit 
    42     opts = { :controller => 'auto_admin', :action => 'edit', :model => 'user', :id => 7
     42    opts = { :controller => 'auto_admin', :action => 'edit', :model => 'user', :id => '7'
    4343    assert_routing url_for( opts ), opts 
    4444  end 
     
    4646  # Model with ID (specific action) 
    4747  def test_delete 
    48     opts = { :controller => 'auto_admin', :action => 'delete', :model => 'user', :id => 7
     48    opts = { :controller => 'auto_admin', :action => 'delete', :model => 'user', :id => '7'
    4949    assert_routing url_for( opts ), opts 
    5050  end 
  • trunk/auto-admin/test/test_helper.rb

    r1 r16  
    55require "#{rails_root}/config/environment.rb" 
    66require 'action_controller/test_process' 
     7require 'dispatcher' 
    78require 'breakpoint' 
    89