Aaron Patterson
dc76e3c38f
should sort these ids before asserting they are equal!
2010-10-15 15:47:09 -07:00
Aaron Patterson
552636c652
testing that symbols work as sql literals
2010-10-15 15:46:13 -07:00
Carl Lerche
69789c3b29
#transaction on the instance level should take options as well
2010-10-14 21:27:40 -07:00
Michael Koziarski
9ebe582830
Revert 0c0b0aa0f2 which introduced a security vulnerability.
...
This addresses CVE-2010-3933
Conflicts:
activerecord/lib/active_record/nested_attributes.rb
2010-10-15 10:27:33 +13:00
Aaron Patterson
676a00163d
clear any stale connections before messing with threaded tests
2010-10-13 16:58:03 -07:00
Carl Lerche
91ba75806f
Update the ActiveRecord tests to not set unused options
...
This makes a test fail, but it is revealing a bug in Arel master.
2010-10-13 12:32:52 -07:00
Jon Leighton
076b75bf98
Add some tests for functionality in JoinAssociation which already exists but was previously untested
2010-10-13 08:24:19 -07:00
Aaron Patterson
4b2e16ed24
all columns respond to string_to_binary, so no need to check respond_to?
2010-10-12 13:10:52 -07:00
Aaron Patterson
0ca9c836c0
test quoting a string with an unknown column type
2010-10-12 11:43:50 -07:00
Aaron Patterson
98cb754cd7
test quoting multibyte chars object
2010-10-12 11:38:07 -07:00
Aaron Patterson
2681dd81b4
test quoting strings with binary columns
2010-10-12 11:34:21 -07:00
Aaron Patterson
4804cb485c
test quoting a string with a float column
2010-10-12 11:30:34 -07:00
Aaron Patterson
50ad7f6561
testing quoting a string for an int column
2010-10-12 11:29:28 -07:00
Aaron Patterson
07b0b5b330
testing crazy object quoting
2010-10-12 11:25:20 -07:00
Aaron Patterson
1ba3489b75
test that dates / times / datetimes call quoted_date
2010-10-12 11:21:35 -07:00
Aaron Patterson
8b33f66891
test quoting of bigdecimals
2010-10-12 11:08:10 -07:00
Aaron Patterson
ba0a6772bb
testing floats, fixnum, and bignums
2010-10-11 17:57:47 -07:00
Aaron Patterson
8e8a5f33f4
test quoting nils, true, false, id
2010-10-11 17:52:10 -07:00
Aaron Patterson
2610bcbd94
getting quoted_time under more specific tests
2010-10-11 17:52:10 -07:00
Aaron Patterson
b9d4341bd0
starting to get the quote module under test
2010-10-11 17:52:10 -07:00
Marcelo Giorgi
1c9022de21
Honor distinct option when used with count operation after group clause [ #5721 state:resolved]
2010-10-11 09:39:34 -07:00
Santiago Pastorino
e0b76d6151
reorder removed in favor of except(:order).order
2010-10-11 11:54:46 -02:00
Piotr Sarnacki
022205be1d
Add callback on skipped migration while copying migrations
2010-10-09 21:32:34 +02:00
Piotr Sarnacki
4377f8eba2
Change the method for copying migrations, do not add scope.
...
The purpose of this change is to allow copying fail on the same names.
Migrations change database and they should be treated with caution,
if 2 migrations are named the same it's much better to skip migration
and allow user decide if it should be copied or not.
2010-10-09 21:32:34 +02:00
Hemant Kumar
2a04110f26
fix ruby 1.9 deadlock problem, fixes #5736 add connection pool tests
2010-10-06 14:45:56 -06:00
Aaron Patterson
0238228e5d
type_name should check for blank because people may have messed up databases
2010-09-30 16:03:05 -07:00
Marcelo Giorgi
ef6df93a8d
AssociationCollection#include? working properly for objects added with build method [ #3472 state:resolved]
2010-09-30 12:13:52 -07:00
Aaron Patterson
cc18034c8c
group clause must be more specific
2010-09-30 10:17:34 -07:00
oleg dashevskii
ab9622ee62
Tests proving #5441
2010-09-30 10:17:29 -07:00
Aaron Patterson
5793d5e002
eliminating method_missing on TableDefinition
2010-09-29 11:18:43 -07:00
Aaron Patterson
2cc4b7f297
fisting test organization
2010-09-29 10:36:32 -07:00
Aaron Patterson
9b89a436e5
Revert "porting 515917f5d8 to master"
...
This reverts commit bee447a5b9 .
2010-09-28 15:51:07 -07:00
Marcelo Giorgi
cdfd013dd7
Set attributes properly for model built from association with conditions [ #5562 state:resolved]
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-28 15:22:50 -03:00
Aaron Patterson
75e52df0e8
fixing indentation warning
2010-09-28 10:26:32 -07:00
Étienne Barrié
8b8730e139
Test add_index and remove_index with a symbol name #4891
2010-09-28 10:06:57 -07:00
Aaron Patterson
bee447a5b9
porting 515917f5d8 to master
2010-09-28 10:02:03 -07:00
Aaron Patterson
526ade1ff6
adding test cases for the dynamic finder matcher match method
2010-09-27 17:59:28 -07:00
Aaron Patterson
133742d185
@klass also uses DynamicFinderMatch, so no need for it on the relation
2010-09-27 16:51:12 -07:00
Aaron Patterson
f22b40a8f2
make sure we use the engine assigned to the table when quoting
2010-09-27 14:29:07 -07:00
Neeraj Singh
4966b915fe
Fix for #5579 involved the code change for both has_one and has_many relationships. The path included test only for has_one. This patch adds test for has_many relationship.
...
[#5706 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-27 23:11:26 +02:00
Neeraj Singh
7f743233c4
Fix for nested_attributes with has_many association fails when a single record is being updated.
...
[#5705 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-27 23:11:24 +02:00
Aaron Patterson
e1b51955f1
adding a test for slug behavior
2010-09-27 11:33:35 -07:00
Tim Connor
d6f7b7d353
Fix remove_index issue when provided :name is a symbol
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-26 20:40:14 -03:00
Marcelo Giorgi
72543b2e63
Delegate ActiveRecord::Base.offset to scoped methods (analogous to limit) [ #5688 state:resolved]
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-24 20:24:54 -03:00
tnp
55b6fa9370
restore behavior of touch for models without :updated_xx [ #5439 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-24 20:42:38 +02:00
Neeraj Singh
097240f602
reject_id option should be respected while using nested_attributes
...
[#5579 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-24 12:46:24 +02:00
Aaron Patterson
afdf86e8ee
Hash#to_s behaves differently between 1.8 and 1.9, so adjust accordingly
2010-09-23 08:48:10 -07:00
Aaron Patterson
0a515dc68d
testing poor behavior of hash serialization
2010-09-22 14:58:29 -07:00
Aaron Patterson
b7e4a97ab5
fixing tests. woo
2010-09-21 14:42:28 -07:00
Hemant Kumar
953d129bb2
remove join table rows before removing owner row for habtm associations, fixes#5674
2010-09-21 13:58:09 -07:00