aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
Commit message (Collapse)AuthorAgeFilesLines
* Fix BacktraceCleaner#noise for multiple silencers.Mark J. Titorenko2013-06-201-0/+21
| | | | | | | | | | | | | | The previous implementation of BacktraceSilencer#noise did not work correctly if more than one silencer was configured -- specifically, it would only return noise which was matched by all silencers. The new implementation is such that anything that has been matched by silencers is removed from the backtrace using Array#- (array difference), ie. we now return all elements within a backtrace that have been matched by any silencer (and are thus removed by #silence). Fixes #11030.
* Rewind StringIO instances before be parsed againPaco Guzman2013-06-165-0/+5
|
* Use xml instead already parsed xmlPaco Guzman2013-06-161-1/+1
|
* Merge pull request #10727 from pacoguzman/fix-xml-mini-testsRafael Mendonça França2013-06-156-6/+6
|\ | | | | Fix XmlMini different backends tests
| * Compare with the parsed result from REXML backendPaco Guzman2013-05-226-6/+6
| |
* | Merge pull request #10740 from mrsimo/hash-with-indifferent-access-selectRafael Mendonça França2013-06-141-0/+30
|\ \ | | | | | | HashWithIndifferentAccess#select working as intended
| * | HashWithIndifferentAccess#select working as intendedAlbert Llop2013-05-231-0/+30
| |/ | | | | | | | | | | Before this commit, #reject returned a HashWithIndifferentAccess, whereas #select returned a Hash. Now #select also returns a HashWithIndifferentAccess.
* | Merge pull request #10943 from killthekitten/10932_constantize_emptyXavier Noria2013-06-141-4/+4
|\ \ | | | | | | Fix #10932. Treat "" and "::" as invalid on constantize
| * | Fix #10932. Treat "" and "::" as invalid on constantizeNikolay Shebanov2013-06-141-4/+4
| | |
* | | Add missing nsec test for 17f5d8eAndrew White2013-06-131-0/+5
| | |
* | | Keep sub-second resolution when wrapping a DateTime valueAndrew White2013-06-132-0/+15
|/ / | | | | | | | | | | | | Add `DateTime#usec` and `DateTime#nsec` so that `ActiveSupport::TimeWithZone` keeps sub-second resolution when wrapping a `DateTime` value. Fixes #10855
* | Drop extra variable from testVipul A M2013-06-121-2/+2
| |
* | Don't blindly call blame_file! on exceptions in ↵Andrew Kreiling2013-06-092-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | ActiveSupport::Dependencies::Loadable It is possible under some environments to receive an Exception that is not extended with Blamable (e.g. JRuby). ActiveSupport::Dependencies::Loadable#load_dependency blindly call blame_file! on the exception which throws it's own NoMethodError exception and hides the original Exception. This commit fixes #9521
* | Override Time.at to work with Time-like valuesAndrew White2013-06-081-0/+22
| | | | | | | | | | | | | | Time.at allows passing a single Time argument which is then converted to an integer. The conversion code since 1.9.3r429 explicitly checks for an instance of Time so we need to override it to allow DateTime and ActiveSupport::TimeWithZone values.
* | Merge pull request #10784 from senny/10526_prevent_key_transformationRafael Mendonça França2013-06-031-0/+7
|\ \ | | | | | | Prevent side effects in `Hash#with_indifferent_access`.
| * | Prevent side effects in `Hash#with_indifferent_access`.Yves Senn2013-05-291-0/+7
| | |
* | | Allow Date to be compared with Time (like it was possible to compare Time ↵David Heinemeier Hansson2013-06-031-0/+4
| | | | | | | | | | | | with Date)
* | | Remove active_support/testing/pending.rb was deprecated.kennyj2013-06-011-11/+0
| | |
* | | Remove active_support/json/variable was deprecated.kennyj2013-06-011-7/+0
| | |
* | | Running isolated testsArun Agrawal2013-05-281-16/+0
|/ / | | | | | | These stopped running don't know when. But these should be running now.
* | Merge pull request #10763 from senny/10758_to_sentence_with_blank_elementsCarlos Antonio da Silva2013-05-261-0/+4
|\ \ | | | | | | test-case for `Array#to_sentence` with `blank?` items.
| * | add test-case for `Array#to_sentence with blank items.Yves Senn2013-05-261-0/+4
| |/
* / Fix some typo in method names, variablesVipul A M2013-05-264-4/+4
|/
* Bug fix: Evented notification subscribers can handle published eventsCarl Lerche2013-05-171-0/+22
|
* Merge pull request #10652 from md5/concern-multiple-includedRafael Mendonça França2013-05-161-0/+14
|\ | | | | Raise an error when multiple included blocks are defined for a Concern
| * Raise when multiple included blocks are definedMike Dillon2013-05-161-0/+14
| |
* | Merge pull request #10527 from zenspider/squishy_minitest5Aaron Patterson2013-05-162-111/+1
|\ \ | |/ |/| Squishy minitest5
| * Updates to make rails 4 happy with minitest 5:Ryan Davis2013-05-062-111/+1
| | | | | | | | | | | | | | | | | | | | + Namespace changes, overhaul of runners. + Internal ivar name changes - Removed a logger globally applied to tests that spew everywhere?!? + Override Minitest#__run to sort tests by name. + Reworked testing isolation to work with the new cleaner architecture. - Removed a bunch of tests that just test minitest straight up. I think these changes were all merged to minitest 4 a long time ago. - Minor report output differences.
* | remove deprecation noticesAaron Patterson2013-05-151-16/+0
| |
* | Fix HWIA#to_hash behavior with array of hashes.kennyj2013-05-161-0/+5
| |
* | deprecating string based terminatorsAaron Patterson2013-05-141-1/+1
| |
* | Merge pull request #10266 from vipulnsward/fix_HIA_to_hashRafael Mendonça França2013-05-141-0/+4
|\ \ | | | | | | fix HashWithIndifferentAccess#to_hash behaviour
| * | fix HashWithIndifferentAccess#to_hash behaviourVipul A M2013-04-191-0/+4
| | |
* | | Merge branch 'master' into normalizecbAaron Patterson2013-05-141-1/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | * master: private callback methods should work Update mail to minimum version 2.5.4
| * | | private callback methods should workAaron Patterson2013-05-141-1/+2
| | | |
* | | | Merge branch 'master' into normalizecbAaron Patterson2013-05-131-0/+40
|\| | | | | | | | | | | | | | | | | | | * master: adding more callback type coverage
| * | | adding more callback type coverageAaron Patterson2013-05-131-0/+40
| | | |
* | | | pass the actual filter, not a stringAaron Patterson2013-05-131-1/+1
|/ / /
* | | add tests for reset_calbacksAaron Patterson2013-05-131-0/+40
| | |
* | | Replace multi_json with jsonErik Michaels-Ober2013-05-111-23/+13
| | |
* | | Merge pull request #10534 from cmaruz/masterRafael Mendonça França2013-05-101-2/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Escape of U+2028 and U+2029 in the JSON Encoder Conflicts: activesupport/lib/active_support/json/encoding.rb
| * | | Added escaping of U+2028 and U+2029 inside the json encoder.Mario Caropreso2013-05-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | U+2028 and U+2029 are allowed inside strings in JSON (as all literal Unicode characters) but JavaScript defines them as newline seperators. Because no literal newlines are allowed in a string, this causes a ParseError in the browser. We work around this issue by replacing them with the escaped version. The resulting JSON is still valid and can be parsed in the browser. This commit has been coauthored with Viktor Kelemen @yikulju
* | | | remove redundant varVipul A M2013-05-091-1/+0
| | | |
* | | | add test for object conditional with scopeAaron Patterson2013-05-081-0/+19
| | | |
* | | | adding a class conditional testAaron Patterson2013-05-081-0/+12
| | | |
* | | | adding tests for lambdas as conditionsAaron Patterson2013-05-081-0/+40
|/ / /
* | | we need to indicate the type of callbackAaron Patterson2013-05-081-2/+2
| | |
* | | adding more tests around callback inconsistenciesAaron Patterson2013-05-081-5/+47
| | |
* | | refactor tests for more pointsAaron Patterson2013-05-081-4/+5
| | |
* | | adding test to demonstrate inconsistencies in the AS::Callbacks apiAaron Patterson2013-05-081-0/+41
| | |