aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/test/abstract_unit.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix broken module namespacing in ActiveResource with Ruby 1.9 [#5699 ↵Matthijs Langenberg2010-09-271-0/+6
| | | | | | | | | | | | | | | | | | | | | | | state:resolved] Following namespace use case was broken with Ruby 1.9: class Author < ActiveRecord::Base ... end module Api class Book < ActiveResouce::Base end end Let's say XML contains <book><author><name>John</name></author>.... Api::Book.first.author.class.to_s #=> Ruby 1.8.7: "Api::Book::Author" (namespaced, correct), Ruby 1.9: "Author" (toplevel, broken) Signed-off-by: José Valim <jose.valim@gmail.com>
* - added mock to test ActiveResource::MissingPrefixParam in finder_testGaston Ramos2010-09-271-0/+1
|
* Refactor setup methods by extracting them in abstract_unit, remove TODO.Emilio Tagua2010-09-171-0/+98
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* correct activeresource load pathJoshua Peek2010-02-281-1/+3
|
* Revert "Fix test load paths for those not using bundler"Carlhuda2010-02-231-4/+2
| | | | | | This reverts commit eec2d301d4ce9df9c71c1a5aa63053eb970b6818. This commit broke tests. You cannot have a file called "bundler" on the load path.
* Fix test load paths for those not using bundlerJoshua Peek2010-02-151-2/+4
|
* Fix isolated test fail due to missing mochaJeremy Kemper2010-02-101-0/+1
|
* Get rails tests running on bundler 0.9Carl Lerche2010-01-311-7/+1
|
* Autoload AMo test caseJoshua Peek2010-01-041-1/+0
|
* Autoload AS test caseJoshua Peek2010-01-041-1/+0
|
* Fully expand relative rails framework paths and make sure we aren'tJoshua Peek2009-12-161-5/+3
| | | | adding any to the load path more than once.
* Reorganize autoloads:Carlhuda2009-12-021-0/+1
| | | | | | | | | | | | | | | | | | | | | * 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.
* Avoid adding component lib/ to load path multiple timesJoshua Peek2009-11-091-1/+3
|
* Have all the tests running off a single GemfileYehuda Katz + Carl Lerche2009-10-201-2/+8
|
* Fix testsJeremy Kemper2009-10-141-0/+1
|
* Move mocha down below initial T::U require and bump version to 0.9.7 [#2858 ↵Yehuda Katz + Carl Lerche2009-07-011-3/+1
| | | | state:resolved]
* Setup ActiveResource autoloadsJoshua Peek2009-06-081-1/+0
|
* Cherry pick Active Support dependencies. Autoload.Jeremy Kemper2009-05-061-6/+3
|
* Ensure Active Support is loaded locally rather than from RubyGems. [#1620 ↵Jeremy Kemper2009-03-081-0/+1
| | | | state:committed]
* Require rubygemsJeremy Kemper2009-02-031-1/+1
|
* Bump mocha requirement for Ruby 1.9 compat. Remove uses_mocha.Jeremy Kemper2009-02-031-7/+3
|
* Update uses_mocha in ActionMailer and ActiveResourceJoshua Peek2008-07-191-9/+13
|
* Rescue from Timeout::Error in ActiveResource::Connection.Cheah Chu Yeow2008-04-221-1/+13
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Removed breakpointer and Binding.of_caller in favor of relying on ruby-debug ↵David Heinemeier Hansson2007-04-281-1/+0
| | | | | | by Kent Sibilev since the breakpointer has been broken since Ruby 1.8.4 and will not be coming back [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6611 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added find-by-path options to ActiveResource::Base.find [DHH]David Heinemeier Hansson2007-04-271-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6595 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Squash test warnings.Jeremy Kemper2007-01-241-28/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6033 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Increase ActiveResource::Base test coverage. Closes #7173, #7174 [Rich Collins]Rick Olson2007-01-231-0/+28
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6020 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* move http_mock to lib so others can use it in their Ares testsJeremy Kemper2006-12-211-5/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5766 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* *_path instance methods. Check for missing/invalid site uri. http_mock ↵Jeremy Kemper2006-12-051-0/+2
| | | | | | response takes message arg, extracts numeric code. Tests log to test/debug.log git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5680 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* consistent load path to prevent double loadsJeremy Kemper2006-09-041-3/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4984 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Initial check-in of Active ResourseDavid Heinemeier Hansson2006-06-251-0/+8
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4492 5ecf4fe2-1ee6-0310-87b1-e25e094e27de