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

Ticket #5906: schema_test_postgresql.rb.patch

File schema_test_postgresql.rb.patch, 0.6 kB (added by baudelairien, 1 year ago)

unit test for patch to bug #5906 (dup #3125)

  • test/schema_test_postgresql.rb

    old new  
    4848    assert_nothing_raised { with_schema_search_path nil } 
    4949  end 
    5050 
     51  def test_lists_tables_with_spacey_schema_search_path 
     52    assert_nothing_raised do 
     53      with_schema_search_path("public, #{SCHEMA_NAME}") do 
     54        assert @connection.tables.include?(TABLE_NAME) 
     55      end 
     56    end 
     57  end 
     58 
    5159  private 
    5260    def columns(table_name) 
    5361      @connection.send(:column_definitions, table_name).map do |name, type, default|