Josh Kalderimis
6b4bbb4274
updated all the tests in ARes to work with json
2011-05-18 00:34:09 -04:00
Jacques Crocker
ee5ef67c44
Allow ActiveResource to work with non-generated ids [ #5660 state:resolved]
...
This commit updates new? so that it knows whether or not the record was actually new or not, and doesn't rely solely on the presence of id. This enables the ability to set a custom primary_key that is not autogenerated by the server.
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-25 11:15:40 +02:00
Xavier Noria
8c0c815ba7
resolves rdoc conflict
2010-09-23 22:35:08 +02:00
Emilio Tagua
f2765a1cb3
Refactor setup methods by extracting them in abstract_unit, remove TODO.
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-17 17:03:58 +02:00
Emilio Tagua
a521a3c05a
Remove TODO and support all expected attributes.
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-17 17:03:51 +02:00
Alexey Mahotkin
dfebdb1b03
Tiny fixes to rdoc
2010-09-16 17:10:36 +04:00
Santiago Pastorino
b451de0d6d
Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;)
2010-08-14 04:12:33 -03:00
Josef Reidinger
59693c4c49
fix loading of different elements in array then int and string [ #5036 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-08-02 17:06:09 +02:00
Neeraj Singh
39a246f545
Final iteration of use better testing methods
...
[#4652 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-05-19 21:31:51 +02:00
Jeremy Kemper
46b376962f
Fix new schema test dependency on Hash#to_xml
2009-12-23 23:30:59 -08:00
Joshua Peek
2e9c775998
Use instance_eval for schema block
2009-12-20 19:04:53 -06:00
Joshua Peek
c0ad3f6cc6
Rename define_schema => schema
2009-12-20 19:04:53 -06:00
Joshua Peek
669c5eec44
Rename SchemaDefinition => Schema
2009-12-20 19:04:53 -06:00
Taryn East
fc9b3e4a45
define_schema for Active Resource
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2009-12-20 19:04:53 -06:00
Xavier Noria
1979e9c855
Symbol#to_proc is not needed for Ruby >= 1.8.7
2009-11-09 22:16:51 +01:00
Joshua Peek
89630a7c2c
Cleanup whitespace introduced in 8377646
and f4f6888
2009-10-02 10:19:30 -05:00
Taryn East
8377646d68
add indifferent access to the attributes
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2009-10-02 10:13:40 -05:00
taryn
36bf587347
Moved all test cases into a new test/cases directory to match Active Record test directory structure.
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2009-08-19 09:03:57 -05:00