| | 120 | end |
|---|
| | 121 | |
|---|
| | 122 | def test_eager_association_loading_with_belongs_to_and_conditions_string_with_unquoted_table_name |
|---|
| | 123 | assert_nothing_raised do |
|---|
| | 124 | Comment.find(:all, :include => :post, :conditions => ['posts.id = ?',4]) |
|---|
| | 125 | end |
|---|
| | 126 | end |
|---|
| | 127 | |
|---|
| | 128 | def test_eager_association_loading_with_belongs_to_and_conditions_string_with_quoted_table_name |
|---|
| | 129 | assert_nothing_raised do |
|---|
| | 130 | Comment.find(:all, :include => :post, :conditions => ["#{Comment.connection.quote_table_name('posts.id')} = ?",4]) |
|---|
| | 131 | end |
|---|
| | 132 | end |
|---|
| | 133 | |
|---|
| | 134 | def test_eager_association_loading_with_belongs_to_and_order_string_with_unquoted_table_name |
|---|
| | 135 | assert_nothing_raised do |
|---|
| | 136 | Comment.find(:all, :include => :post, :order => 'posts.id') |
|---|
| | 137 | end |
|---|
| | 138 | end |
|---|
| | 139 | |
|---|
| | 140 | def test_eager_association_loading_with_belongs_to_and_order_string_with_quoted_table_name |
|---|
| | 141 | assert_nothing_raised do |
|---|
| | 142 | Comment.find(:all, :include => :post, :order => Comment.connection.quote_table_name('posts.id')) |
|---|
| | 143 | end |
|---|