diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-15 14:45:00 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-15 14:45:00 -0700 |
commit | ee46f1d5d2a8825de2d4973fb0301f2d85986e73 (patch) | |
tree | 23bc39bf0a63c4436ce3aadedfab9dd7cde5b909 /activesupport/test | |
parent | 704bf0ecc550552f1cc5e453771917e8782b64ad (diff) | |
parent | e3e3851ed662fc55ee88c16a3cd9bb87f24e6bd6 (diff) | |
download | rails-ee46f1d5d2a8825de2d4973fb0301f2d85986e73.tar.gz rails-ee46f1d5d2a8825de2d4973fb0301f2d85986e73.tar.bz2 rails-ee46f1d5d2a8825de2d4973fb0301f2d85986e73.zip |
Merge branch 'master' into joindep
* master: (44 commits)
grammar fix (reverted in e9a1ecd)
Revert "fixed a doc bug in the CHANGELOG.md s/does no longer depend on/no longer depends on/"
Add missed require making `enable_warnings` available
Prepare generated Gemfile for Capistrano 3
Added --model-name option scaffold_controller_generator.
read the association instead of sending
we should have unique sponsorable ids in the fixtures at least
simplify populating the ordering hash
the preloader for the RHS has all the preloaded records, so ask it
only calculate offset index once. #12537
Remove size alias for length validation
Fix `singleton_class?`
Minor Refactoring to `NumberHelper#number_to_human`
`$SAFE = 4;` has been removed with Ruby 2.1
scope_chain should not be mutated for other reflections
Remove `default_primary_key_type` and extract contains of `native_database_types` to a constant since they aren't conditional now in SQLite3Adapter. Makes it more like other adapters.
cleanup changelog entry format. [ci skip]
Extract a function to determine if the default value is a function
Push default_function to superclass to avoid method check
Dump the default function when the primary key is uuid
...
Conflicts:
activerecord/lib/active_record/relation/finder_methods.rb
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/duration_test.rb | 15 | ||||
-rw-r--r-- | activesupport/test/core_ext/thread_test.rb | 13 |
2 files changed, 0 insertions, 28 deletions
diff --git a/activesupport/test/core_ext/duration_test.rb b/activesupport/test/core_ext/duration_test.rb index cc24d7c74c..ed267cf4b9 100644 --- a/activesupport/test/core_ext/duration_test.rb +++ b/activesupport/test/core_ext/duration_test.rb @@ -145,21 +145,6 @@ class DurationTest < ActiveSupport::TestCase assert_equal '172800', 2.days.to_json end - def test_flatten - a = 2.months - b = (1.month + 1.month).flatten - - assert_equal a.parts, b.parts - end - - def test_flatten! - a = (1.month + 1.month) - b = a.flatten - a.flatten! - - assert_equal a.parts, b.parts - end - protected def with_env_tz(new_tz = 'US/Eastern') old_tz, ENV['TZ'] = ENV['TZ'], new_tz diff --git a/activesupport/test/core_ext/thread_test.rb b/activesupport/test/core_ext/thread_test.rb index 54d2dcd8dd..6a7c6e0604 100644 --- a/activesupport/test/core_ext/thread_test.rb +++ b/activesupport/test/core_ext/thread_test.rb @@ -72,17 +72,4 @@ class ThreadExt < ActiveSupport::TestCase end end - def test_thread_variable_security - rubinius_skip "$SAFE is not supported on Rubinius." - - t = Thread.new { sleep } - - assert_raises(SecurityError) do - Thread.new { $SAFE = 4; t.thread_variable_get(:foo) }.join - end - - assert_raises(SecurityError) do - Thread.new { $SAFE = 4; t.thread_variable_set(:foo, :baz) }.join - end - end end |