Changeset 438

Show
Ignore:
Timestamp:
08/21/06 08:05:01 (2 years ago)
Author:
snowblink
Message:

Ticket #110: Added tests to check if new roles could be added without specifying omnipotent or system role fields
Also changed the name of a test, so it will run

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • user_engine/branches/rb_1.0/test/functional/role_controller_test.rb

    r150 r438  
    3131  #========================================================================== 
    3232 
    33   def assert_new_role 
     33  def test_assert_new_role 
    3434    get :new 
    3535    assert_response :success 
     
    5151    assert_errors 
    5252    assert_invalid_column_on_record 'role', 'name'     
     53  end 
     54 
     55  # PostgreSQL does not assume NULL = 0 
     56  def test_creating_a_new_role_on_postgresql 
     57    post :new, :role => {:name => 'postgres_name', :description => 'description'} 
     58    assert_not_nil Role.find_by_name('postgres_name') 
    5359  end 
    5460