Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | adding a weird test case | Aaron Patterson | 2013-08-06 | 1 | -0/+7 | |
| | ||||||
* | use latches rather than mucking with the scheduler | Aaron Patterson | 2013-07-08 | 1 | -7/+7 | |
| | ||||||
* | Remove instance level attr_readonly setting was deprecated. | kennyj | 2013-06-02 | 1 | -6/+0 | |
| | ||||||
* | Remove ActiveSupport::Benchmarkable#silence was deprecated. | kennyj | 2013-06-01 | 1 | -32/+0 | |
| | ||||||
* | Extract AR::Persistence#becomes's test code out from base_test.rb | Takehiro Adachi | 2013-05-22 | 1 | -13/+0 | |
| | | | | | The method got extracted out from AR::Base in commit d916c62cfc7c59ab6411407a05b946d3dd7535e9, but the tests never did. | |||||
* | Extract AR::AttributeMethods#attribute_for_inspect's test code out from ↵ | Takehiro Adachi | 2013-05-22 | 1 | -8/+0 | |
| | | | | | | | base_test.rb The method itself got extracted out from ActiveRecored::Base in commit ceb33f84933639d3b61aac62e5e71fd087ab65ed, but the test code never did. | |||||
* | Extract AR::Core#inspect and AR::Core.inspect's test code from base_test.rb | Takehiro Adachi | 2013-05-22 | 1 | -24/+0 | |
| | | | | | The methods got moved to core.rb in commit b2c9ce341a1c907041f55461aefebb0321280cb5, but the tests never did. | |||||
* | Fix tests which started to fail due to commit ↵ | Takehiro Adachi | 2013-05-18 | 1 | -1/+1 | |
| | | | | | | | | 0123c39f41e2062311b2197e6e230ef8ad67e20e Due to commit 0123c39f41e2062311b2197e6e230ef8ad67e20e, column topic.unique_replies_count has been added, and these test started to fail since the tests depends on the topic tables column info. | |||||
* | Extract tests code out from AR's base_test.rb to integration_test.rb | Takehiro Adachi | 2013-05-02 | 1 | -73/+0 | |
| | | | | | | `AR::Base#to_param` and `AR::Base#cache_key` is defined at active_record/integration.rb, so tests for those methods should be at integration_test.rb | |||||
* | hides the per thread registry instance, and caches singleton methods | Xavier Noria | 2013-04-13 | 1 | -2/+2 | |
| | | | | | | | | | | | | Existing code was delegating to the instance with delegate macro calls, or invoking the instance method to reach the object and call its instance methods. But the point is to have a clean class-level interface where the thread local instance is hidden in the implementation. References #11c6973. References #10198. | |||||
* | Changed the ScopeRegistry and the InstrumentationRegistry to use the | wangjohn | 2013-04-09 | 1 | -2/+2 | |
| | | | | PerThreadRegistry module. | |||||
* | Grouping thread locals in the ActiveRecord scopes so that the | wangjohn | 2013-04-08 | 1 | -2/+2 | |
| | | | | | current_scope and ignore_default_scope locals are brought together under a registry object. | |||||
* | Remove duplicated require from AR base test | Carlos Antonio da Silva | 2013-04-03 | 1 | -1/+0 | |
| | ||||||
* | Fix typo: overriden => overriDDen | Alexander Balashov | 2013-03-28 | 1 | -1/+1 | |
| | ||||||
* | Make connection_handler overridable per thread | Sam Saffron | 2013-03-27 | 1 | -0/+57 | |
| | ||||||
* | Make Postgres point type correspond to ruby array with two floats inside | Martin Schürrer | 2013-03-25 | 1 | -2/+25 | |
| | ||||||
* | Add Error#full_message test; Fix typos | Vipul A M | 2013-03-22 | 1 | -1/+1 | |
| | | | | | Introduce test on Error#full_message for attribute with underscores; Fix some typos | |||||
* | Commas aren't comas. | Josh Adams | 2013-03-19 | 1 | -2/+2 | |
| | | | | Type a fixo. | |||||
* | move tests out from base_test.rb | Takehiro Adachi | 2013-03-18 | 1 | -14/+0 | |
| | | | | | These tests should be in inheritance_test.rb since its testing a feature which is implemented in inheritance.rb | |||||
* | Deprecate the `:distinct` option for `Relation#count`. | Yves Senn | 2013-03-15 | 1 | -1/+1 | |
| | | | | | | | We moved more and more away from passing options to finder / calculation methods. The `:distinct` option in `#count` was one of the remaining places. Since we can now combine `Relation#distinct` with `Relation#count` the option is no longer necessary and can be deprecated. | |||||
* | rename `Relation#uniq` to `Relation#distinct`. `#uniq` still works. | Yves Senn | 2013-03-15 | 1 | -0/+6 | |
| | | | | | | | | The similarity of `Relation#uniq` to `Array#uniq` is confusing. Since our Relation API is close to SQL terms I renamed `#uniq` to `#distinct`. There is no deprecation. `#uniq` and `#uniq!` are aliases and will continue to work. I also updated the documentation to promote the use of `#distinct`. | |||||
* | hide more data in the schema cache | Aaron Patterson | 2013-03-14 | 1 | -2/+2 | |
| | ||||||
* | Address ActiveRecord::StatementInvalid: OCIError: ORA-00979 | Yasuo Honda | 2013-03-11 | 1 | -2/+2 | |
| | ||||||
* | Merge pull request #9105 from bemurphy/cache_key_updated_on | Rafael Mendonça França | 2013-03-07 | 1 | -2/+20 | |
|\ | | | | | | | | | | | | | cache_key consults updated_on timestamp if present Conflicts: activerecord/CHANGELOG.md | |||||
| * | cache_key consults updated_on timestamp if present | Brendon Murphy | 2013-02-26 | 1 | -2/+20 | |
| | | | | | | | | | | - Extract max timestamp retrieval for cache_key - Update changelog for cache_key changes | |||||
* | | More helpful error message when instantiating an abstract class | Aaron Weiner | 2013-03-03 | 1 | -0/+14 | |
|/ | | | | | | | | | | Calling a literal ActiveRecord::Base.new raises NoMethodError, since it ends up calling Class.abstract_class? which does not exist. Similarly, instantiating an actual abstract class hits the database, when conventionally it should immediately throw NotImplementedError. ActiveRecord::Base can't be made abstract without breaking many, many things, so check for it separately. | |||||
* | Raising an ActiveRecordError when one tries to use .touch(name) on a new | wangjohn | 2013-02-25 | 1 | -0/+7 | |
| | | | | | object that has not yet been persisted. This behavior follows the precedent set by update_columns. | |||||
* | delete duplicated tests in AR base_test.rb | Takehiro Adachi | 2013-02-19 | 1 | -23/+0 | |
| | | | | These are duplicated with the tests which are in relations_test.rb | |||||
* | add tests for ActiveRecord::Base#create | Takehiro Adachi | 2013-02-18 | 1 | -0/+8 | |
| | ||||||
* | Remove unnecessary begin..rescue..end, use only rescue | Akira Matsuda | 2013-01-06 | 1 | -7/+5 | |
| | ||||||
* | Rename update_attributes method to update, keep update_attributes as an alias | Amparo Luna + Guillermo Iguaran | 2013-01-03 | 1 | -2/+2 | |
| | ||||||
* | Merge pull request #8682 from amatsuda/rm_as_frozen_object_error | Guillermo Iguaran | 2013-01-01 | 1 | -1/+0 | |
|\ | | | | | remove meaningless AS::FrozenObjectError | |||||
| * | remove meaningless AS::FrozenObjectError | Akira Matsuda | 2013-01-02 | 1 | -1/+0 | |
| | | ||||||
* | | Standardize the use of current_adapter? | Rafael Mendonça França | 2013-01-01 | 1 | -4/+4 | |
|/ | ||||||
* | Alias refute methods to assert_not and perfer assert_not on tests | Rafael Mendonça França | 2012-12-31 | 1 | -1/+1 | |
| | ||||||
* | Improve test name related to cache timestamp format [ci skip] | Carlos Antonio da Silva | 2012-12-11 | 1 | -1/+1 | |
| | | | | | Conflicts: activerecord/test/cases/base_test.rb | |||||
* | Allow users to choose the timestamp format in the cache key | Rafael Mendonça França | 2012-12-10 | 1 | -0/+5 | |
| | | | | | | | This can be done using the class attribute cache_timestamp_format Conflicts: railties/guides/source/configuring.textile | |||||
* | Make sure the tests pass in the case closer to described in #8195 | Rafael Mendonça França | 2012-12-10 | 1 | -0/+12 | |
| | | | | | | Conflicts: activerecord/test/models/bulb.rb activerecord/test/schema/schema.rb | |||||
* | arel columns can be used for grouping so that "weird" column names are usable | Aaron Patterson | 2012-11-15 | 1 | -0/+6 | |
| | ||||||
* | Add a regression test on #8195 | Nikita Afanasenko | 2012-11-13 | 1 | -0/+7 | |
| | ||||||
* | Remove ActiveRecord::Model | Jon Leighton | 2012-10-26 | 1 | -14/+0 | |
| | | | | | | | | | | In the end I think the pain of implementing this seamlessly was not worth the gain provided. The intention was that it would allow plain ruby objects that might not live in your main application to be subclassed and have persistence mixed in. But I've decided that the benefit of doing that is not worth the amount of complexity that the implementation introduced. | |||||
* | Move multiparameter attributes related tests to its own file | Rafael Mendonça França | 2012-10-06 | 1 | -337/+0 | |
| | ||||||
* | Remove mass assignment security from ActiveRecord | Guillermo Iguaran | 2012-09-16 | 1 | -4/+0 | |
| | ||||||
* | Deprecate ActiveSupport::Benchmarkable#silence. | Steve Klabnik | 2012-09-15 | 1 | -12/+18 | |
| | | | | | | | Due to its lack of thread safety, we're deprecating this, and it will be removed in Rails 4.1. Fixes #4060. | |||||
* | Fix for time type columns with invalid time | Adam Meehan | 2012-09-05 | 1 | -0/+12 | |
| | | | | | | The string_to_dummy_time method was blindly parsing the dummy time string with Date._parse which returns a hash for the date part regardless of whether the time part is an invalid time string. | |||||
* | test cleanup, remove ruby_type because it's no longer needed | Yves Senn | 2012-09-03 | 1 | -1/+1 | |
| | | | | | All tests with a custom inheritance_column use the `Vegtable` model. The field ruby_type on the Company models is no longer needed | |||||
* | fix order dependent test in AR::BasicsTest | Francesco Rodriguez | 2012-08-27 | 1 | -5/+5 | |
| | | | | | | | | This test https://github.com/rails/rails/blob/master/activerecord/test/cases/base_test.rb#L381 is failing because is not setting `CreditCard.pluralize_table_name` to `false`. In this case, i prefer to change to another model that is not in the `GUESSED_CLASSES` array. | |||||
* | Move the serialized attribute tests to their own file | Rafael Mendonça França | 2012-08-26 | 1 | -196/+0 | |
| | ||||||
* | Move test to the correct file | Rafael Mendonça França | 2012-08-26 | 1 | -0/+6 | |
| | ||||||
* | Use instance_accessor: false instead of instance_writer. | kennyj | 2012-08-21 | 1 | -0/+6 | |
| |