Santiago Pastorino
30df88ae06
These tests are trusting in the order of the elements so use OrderedHash instead of Hash
2010-07-21 17:34:43 -07:00
David Trasbo
df083b482d
Make sure ActiveResource::Errors#from_json doesn't pass nil to #from_array [ #3650 state:commited]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-26 19:23:10 +02:00
Elomar França
176c386409
Fix bug where ActiveResource::HttpMock would overwrite Accept/Content-Type header to application/xml [ #4939 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-24 13:25:10 +02:00
José Valim
6788db824a
Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [ #4816 state:resolved]
2010-06-24 13:23:43 +02:00
Xavier Noria
f17159b029
edit pass: the names of Rails components have a space, ie, "Active Record", not "ActiveRecord"
2010-06-14 23:22:04 +02:00
Elomar França
7bd30b9585
Adding to_key to ActiveResource objects using ActiveModel::Conversion [ #4685 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-05-26 15:57:27 +02:00
Neeraj Singh
1bc6b43f53
Replace assert with assert_equal in some test cases
...
[#4654 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-05-21 16:00:49 +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
Neeraj Singh
c00f8e49ad
assert should be replaced with assert_equal in a particular test case
...
[#4636 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-05-18 16:12:59 +02:00
Santiago Pastorino
7ffe76046a
ActiveResource shouldn't consider modules in the path
...
[#4529 state:committed]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-05-15 09:38:32 +02:00
Santiago Pastorino
bea3c26833
Make ActiveResource serialize XML correctly when element_name is set.
...
[#4529 ]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-05-12 09:31:36 -07:00
Santiago Pastorino
42fa2714c5
Make use of to_xml and to_json in tests
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-05-12 09:31:30 -07:00
Santiago Pastorino
7cd1d37a51
Reuse Active Model serialization in Active Resource. [ #2584 state:committed]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-26 15:00:26 -07:00
Jeremy Kemper
2a6e0f34ad
Revert "create option to include_root_in_json for ActiveResource [ #2584 state:committed]"
...
This reverts commits 72f89b5d971b48a133c4c0af56fbeda35d738dae, 137d8e0b2fe9fcc4fdac6cbbd44ca010784e5972.
Should reuse Active Model.
[#2584 state:incomplete]
2010-04-25 21:04:19 -07:00
Santiago Pastorino
137d8e0b2f
Make this test pass on > 1.9
2010-04-19 11:44:11 -03:00
Santiago Pastorino
72f89b5d97
create option to include_root_in_json for ActiveResource [ #2584 state:committed]
2010-04-05 17:47:02 -03:00
Sebastian Martinez
bc36618ae6
added require abstract_unit on setter_trap.rb
...
Signed-off-by: wycats <wycats@gmail.com>
2010-03-18 11:32:51 -07:00
Carl Lerche
312570c488
Fix active_resource tests
2010-03-02 22:56:34 -08:00
Joshua Peek
30446f7b29
correct activeresource load path
2010-02-28 18:29:34 -06:00
Santiago Pastorino
f10a019452
no more warning ambiguous first argument; put parentheses or even spaces on log_subscriber_test
2010-02-26 14:54:18 -08:00
Carlhuda
24ab5665b2
Revert "Fix test load paths for those not using bundler"
...
This reverts commit eec2d301d4ce9df9c71c1a5aa63053eb970b6818.
This commit broke tests. You cannot have a file called "bundler" on the load path.
2010-02-23 17:31:17 -08:00
José Valim
3f948a0e29
Merge master.
2010-02-17 00:48:04 +01:00
Prem Sichanugrist
f0523f72b4
Rename Rails::Subscriber to Rails::LogSubscriber
2010-02-16 22:36:15 +01:00
Joshua Peek
eec2d301d4
Fix test load paths for those not using bundler
2010-02-15 10:20:11 -06:00
Jeremy Kemper
523002fe16
Fix isolated test fail due to missing mocha
2010-02-10 16:45:43 -08:00
Yehuda Katz
6f247347a1
Fix failing spec
2010-02-08 12:39:06 -08:00
Santiago Pastorino
a9620ab918
method_missing errors on activeresource tests, mocha is not required there
...
[#3825 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-02-05 16:08:33 -08:00
Carl Lerche
9f01dff9c2
Get rails tests running on bundler 0.9
2010-01-31 19:13:43 -08:00
Jatinder Singh
e87748869a
Use format of ARes rather than content-type of remote errors to load errors.
...
[#1956 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-01-27 18:27:18 -08:00
José Valim
378464a2e4
Default to sync instrumentation.
2010-01-21 13:09:12 +01:00
José Valim
c0d31ca41b
save(false) is gone, use save(:validate => false) instead.
2010-01-17 14:22:34 +01:00
José Valim
116df09c3e
Add notifications to ActiveResource.
2010-01-14 01:07:03 +01:00
Joshua Peek
640d9e7e32
Autoload AMo test case
2010-01-04 16:29:07 -06:00
Joshua Peek
2601a16ede
Autoload AS test case
2010-01-04 16:22:46 -06: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
Joshua Peek
7ee5843c3c
Fully expand relative rails framework paths and make sure we aren't
...
adding any to the load path more than once.
2009-12-16 11:56:51 -06:00
Carlhuda
c1304098cc
Reorganize autoloads:
...
* A new module (ActiveSupport::Autoload) is provide that extends
autoloading with new behavior.
* All autoloads in modules that have extended ActiveSupport::Autoload
will be eagerly required in threadsafe environments
* Autoloads can optionally leave off the path if the path is the same
as full_constant_name.underscore
* It is possible to specify that a group of autoloads live under an
additional path. For instance, all of ActionDispatch's middlewares
are ActionDispatch::MiddlewareName, but they live under
"action_dispatch/middlewares/middleware_name"
* It is possible to specify that a group of autoloads are all found
at the same path. For instance, a number of exceptions might all
be declared there.
* One consequence of this is that testing-related constants are not
autoloaded. To get the testing helpers for a given component,
require "component_name/test_case". For instance, "action_controller/test_case".
* test_help.rb, which is automatically required by a Rails application's
test helper, requires the test_case.rb for all active components, so
this change will not be disruptive in existing or new applications.
2009-12-02 20:01:08 -08:00
Joshua Peek
11e798ae0f
Avoid adding component lib/ to load path multiple times
2009-11-09 23:28:36 -06:00
Xavier Noria
1979e9c855
Symbol#to_proc is not needed for Ruby >= 1.8.7
2009-11-09 22:16:51 +01:00
Yehuda Katz + Carl Lerche
4f6d6f7031
Have all the tests running off a single Gemfile
2009-10-20 16:34:44 -07:00
Jeremy Kemper
3e62503903
Fix tests
2009-10-14 14:47:11 -07:00
pivotal
945d999aad
Digest auth option for ActiveResource.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
2009-10-15 10:37:04 +13:00
Chad Woolley
6e7b02b21a
Fix for Ruby 1.9 - define_method throws an exception under 1.9 if given incorrect number of args
...
Signed-off-by: Carl Lerche <carllerche@mac.com>
2009-10-08 10:48:47 -07:00
Chad Woolley
32cea98c3b
Ruby 1.9: Fix ActiveResource::ConnectionError#to_s when @response does not respond to #code or #message
...
Signed-off-by: Carl Lerche <carllerche@mac.com>
2009-10-08 10:45:00 -07: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