aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/extension_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add more rubocop rules about whitespacesRafael Mendonça França2016-10-291-1/+1
|
* Add three new rubocop rulesRafael Mendonça França2016-08-161-1/+1
| | | | | | | | Style/SpaceBeforeBlockBraces Style/SpaceInsideBlockBraces Style/SpaceInsideHashLiteralBraces Fix all violations in the repository.
* applies new string literal convention in activerecord/testXavier Noria2016-08-061-9/+9
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Remove support to activerecord-deprecated_findersRafael Mendonça França2015-01-021-2/+1
|
* Build fix when running in isolationArun Agrawal2014-11-141-0/+1
| | | | | `Computer` class needs to be require See #17217 for more details
* Revert the whole refactoring in the association builder classes.Rafael Mendonça França2013-12-111-1/+2
| | | | This is to get activerecord-deprecated_finders work again
* Define the association extensions without need to have a builderRafael Mendonça França2013-10-091-2/+1
| | | | instance
* association builder classes no longer need the modelAaron Patterson2013-08-011-1/+1
| | | | | decouple the builder classes from the model. Builder objects should be easier to reuse now.
* no need to define the constant twiceAaron Patterson2013-08-011-1/+0
|
* assert that constants have been set rather than the namesAaron Patterson2013-08-011-6/+8
|
* Fix destructive side effects from marshaling an association caused by ↵Jeremy Kemper2012-09-251-2/+5
| | | | 65843e1acc0c8d285ff79f8c9c49d4d1215440be
* Deprecate ActiveRecord::Base.scoped.Jon Leighton2012-07-271-1/+1
| | | | | | | It doesn't serve much purpose now that ActiveRecord::Base.all returns a Relation. The code is moved to active_record_deprecated_finders.
* fix association :extend optionJon Leighton2012-07-131-1/+1
|
* Allow associations to take a lambda which builds the scopeJon Leighton2012-07-131-1/+1
|
* No Ruby 1.8 stuff. No more checks in code.Arun Agrawal2011-12-211-10/+0
|
* Fix #3890. (Calling proxy_association in scope chain.)Jon Leighton2011-12-081-0/+6
|
* Disable active record marshalling tests on Ruby 1.8.7 on Travis CI, as they ↵Jon Leighton2011-09-061-0/+10
| | | | have been failing intermittently for a long while due to what appears to be a Ruby bug. If anyone has the skills/expertise/time to debug this, please speak to the Travis guys.
* Work around for lolruby bug. (Read on for explanation.)Jon Leighton2011-08-131-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | We were experiencing CI test failures, for example: * 3-1-stable: http://travis-ci.org/#!/rails/rails/builds/79473/L407 * master: http://travis-ci.org/#!/rails/rails/builds/79507/L80 These failures only happened on 1.8.7-p352, and we were only able to reproduce on the Travis CI VM worker. We even tried creating a new 32 bit Ubuntu VM and running the tests on that, and it all worked fine. After some epic trial and error, we discovered that replacing the following: fuu = Marshal.load(Marshal.dump(fuu)) with: marshalled = Marshal.dump(fuu) fuu = Marshal.load(marshalled) seemed to prevent the failure. We have NO IDEA why this is. If anyone has some great insight to contribute then that is welcome. Otherwise, hopefully this will just help us get the CI green again. Many thanks to @joshk for help with sorting this out.
* please use ruby -I lib:test path/to/test.rb, or export RUBY_OPTAaron Patterson2011-06-061-1/+1
|
* Refactor Active Record test connection setup. Please see the ↵Jon Leighton2011-06-041-1/+1
| | | | RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases.
* Use proper objects to do the work to build the associations (adding methods, ↵Jon Leighton2011-02-211-8/+12
| | | | callbacks etc) rather than calling a whole bunch of methods with rather long names.
* Propagate association extensions to scopes called on the association.Glenn Vanderburg2011-02-011-0/+5
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* avoids warnings about mismatched indentations in Ruby 1.9.2Xavier Noria2010-08-191-8/+5
|
* fixed indentation in test casesMark Turner2010-08-111-2/+1
| | | | Signed-off-by: wycats <wycats@gmail.com>
* applied patch to fix the associations with blocks in modules bug from an old ↵Adeh DeSandies2008-09-201-0/+15
| | | | trac ticket
* Merge branch 'ar-test-cleanup' of git://git.geeksomnia.com/railsJeremy Kemper2008-01-211-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8681 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Move tests to casesJeremy Kemper2008-01-181-0/+47
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8660 5ecf4fe2-1ee6-0310-87b1-e25e094e27de