Vijay Dev
f92c2b103e
Merge pull request #8859 from tehgeekmeister/master
...
Fix a typo in a test.
2013-01-09 13:53:24 -08:00
Ezekiel Smithburg
77828e20fc
s/messqage/message/ in message_encryptor_test.rb
2013-01-09 13:32:35 -08:00
Jeremy Kemper
46e0d2397e
CVE-2013-0156: Safe XML params parsing. Doesn't allow symbols or yaml.
2013-01-08 12:42:29 -08:00
Jeremy Kemper
c31cc963da
Revert "Merge branch 'master-sec'"
...
This reverts commit 88cc1688d0cb828c17706b41a8bd27870f2a2beb, reversing
changes made to f049016cd348627bf8db0d72382d7580bf802a79.
2013-01-08 12:41:04 -08:00
Aaron Patterson
88cc1688d0
Merge branch 'master-sec'
...
* master-sec:
CVE-2013-0156: Safe XML params parsing. Doesn't allow symbols or yaml.
* Strip nils from collections on JSON and XML posts. [CVE-2013-0155] * dealing with empty hashes. Thanks Damien Mathieu
2013-01-08 12:11:18 -08:00
Jeremy Kemper
2ced6f2f8a
CVE-2013-0156: Safe XML params parsing. Doesn't allow symbols or yaml.
2013-01-08 12:03:34 -08:00
Vijay Dev
f049016cd3
Merge branch 'master' of github.com:lifo/docrails
...
Conflicts:
guides/source/getting_started.md
2013-01-09 01:04:15 +05:30
Doug Yun
cab6ba4e1b
Correct method notation for #acts_like? [ci skip]
2013-01-07 20:43:11 -05:00
Carlos Antonio da Silva
ded5f5b261
Revert some warning removals related to Ruby 2.0
...
These warnings were actually a bug in Ruby 2.0, the accessors should not
be raising such warnings, they are only meant for ivars.
-
Revert "fix warnings in Ruby 2.0"
This reverts commit 26702a6d3461f4a1c75165030b96886514ecb877.
-
Revert "Merge pull request #8282 from arunagw/warning_removed_for_ruby2"
This reverts commit f63d6544e45e78cda29c0c56fbdf3d9e1f405340, reversing
changes made to 3a890681fad8218305585036abed6d7463a44e41.
2013-01-07 19:46:14 -02:00
Akira Matsuda
94a636f8ae
Instance_variable_names are strings. That is the most important information IMO
2013-01-08 04:31:58 +09:00
Gosha Arinich
0acf92184d
prefer american spelling of 'behavior'
2013-01-07 11:47:27 +03:00
Akira Matsuda
c8e632bd9f
Namespace HashWithIndifferentAccess
2013-01-07 07:37:23 +09:00
Diogo Mafra
7003e71c13
Require 'active_support/core_ext/module/aliasing' in the infinite_comparable module
2013-01-06 13:04:04 -02:00
Akira Matsuda
70ae89c321
Remove unnecessary begin..rescue..end, use only rescue
2013-01-06 15:41:14 +09:00
Yves Senn
947e1d5e85
deprecate assert_blank
and assert_present
.
...
They don't add any benefits over `assert object.blank?`
and `assert object.present?`
2013-01-05 18:04:52 +01:00
Carlos Antonio da Silva
149b86d97b
Move changelog entry in railties to the top
...
Other minor changelog improvements [ci skip]
2013-01-04 22:49:14 -02:00
SHIBATA Hiroshi
bf620c09aa
added marshal_load and marshal_dump for ProxyTestResult. Behavior of method_missing with Marshal.dump and Marshal.load is changing in ruby 2.0.0 later.
2013-01-05 09:22:03 +09:00
Kelly Stannard
ebd27d5714
Better error message for String#to_date
...
I did this because to_date gives a very unhelpful error message if you
do not pass in a correct date. In the process I think this cleans up the
code nicely and even better it tends to be slightly faster than the
current implementation.
Benchmark
https://gist.github.com/4440875
2013-01-04 16:39:18 +00:00
Rafael Mendonça França
39374aa925
Set the default timezone after the initialization since the configuration
...
now lives in the application initializers.
Fix #8711
2013-01-04 00:25:08 -03:00
Carlos Antonio da Silva
dd3360e05e
Refactor infinite comparable definition a bit
2013-01-04 00:32:52 -02:00
Rafael Mendonça França
05ef97dd14
Remove unnecessary requires
2013-01-03 23:19:28 -03:00
Rafael Mendonça França
59e0c2624a
Remove assert_nothing_raised
2013-01-03 23:14:57 -03:00
bUg
38f28dca3a
Added ability to compare date/time with infinity
...
Date, DateTime, Time and TimeWithZone can now be compared to infinity,
so it's now possible to create ranges with one infinite bound and
date/time object as another bound.
Ex.: @range = Range.new(Date.today, Float::INFINITY)
Also it's possible to check inclusion of date/time in range with
conversion.
Ex.: @range.include?(Time.now + 1.year) # => true
@range.include?(DateTime.now + 1.year) # => true
Ability to create date/time ranges with infinite bound is required
for handling postgresql range types.
2013-01-04 02:41:09 +01:00
Akira Matsuda
f89fa2ae71
Model.all
alone does nothing
2013-01-04 04:22:30 +09:00
Guillermo Iguaran
cb2bd4aa61
Merge pull request #8705 from amparo-luna/change_update_attributes_to_update
...
Rename update_attributes method to update
2013-01-03 09:09:59 -08:00
Amparo Luna + Guillermo Iguaran
1bb020063c
Change docs to use update instead of update_attributes
2013-01-03 12:03:34 -05:00
Matthew Stopa
4928bdee27
Add documentation for BacktraceCleaner#remove_filters!
2013-01-02 21:17:38 -07:00
Carlos Antonio da Silva
9f200fb296
Changelog improvements [ci skip]
2013-01-02 21:11:11 -02:00
Akira Matsuda
b6aa59368b
missing changelog entry for #8682
2013-01-02 19:19:33 -03:00
Akira Matsuda
7bc224dda0
remove meaningless AS::FrozenObjectError
2013-01-02 10:04:58 +09:00
Gosha Arinich
fb58c0ed4a
remove unnecessary always-nil var from #compact
2013-01-01 20:35:43 +03:00
Matthew Stopa
a4eaecc833
Add more documentation to TimeWithZone
...
[ci skip]
2013-01-01 09:55:28 -07:00
Vijay Dev
dfc930b2b1
Merge branch 'master' of github.com:lifo/docrails
2013-01-01 20:29:43 +05:30
Vijay Dev
a30eae10e4
copy edits [ci skip]
2013-01-01 20:28:34 +05:30
Matthew Stopa
f42c089311
Add documentation for TimeWithZone methods
2012-12-31 22:52:47 -07:00
Matthew Stopa
6d5385a135
Add documentation for the TimeWithZone#dst? method.
...
[ci skip]
2012-12-31 19:05:59 -07:00
Andrew Nesbitt
d814284506
Updated copyright notices for 2013
2012-12-31 20:35:29 +00:00
Rafael Mendonça França
e6e3a64982
Only call MiniTest.autorun if the dependecy is present
2012-12-31 16:25:07 -03:00
Rafael Mendonça França
5294ad82c6
Alias refute methods to assert_not and perfer assert_not on tests
2012-12-31 13:58:52 -03:00
Rafael Mendonça França
d4c94accf7
Remove unneeded tests
...
These tests are needed only if we are using MiniTest::Spec
2012-12-31 13:57:24 -03:00
Rafael Mendonça França
5da4d5142a
Add active_support/testing/autorun
...
minitest/autorun load minitest/spec polluting the global namespace with
the DSL that we don't want on Rails
2012-12-31 13:57:24 -03:00
Rafael Mendonça França
eb4930e3c7
Inherit from MiniTest::Unit::TestCase instead of MiniTest::Spec
2012-12-31 13:57:23 -03:00
Rafael Mendonça França
d58d71f565
Revert "minitest provides "it" and "describe""
...
This reverts commit 22bc12ec374b8bdeb3818ca0a3eb787dd3ce39d8.
REASON: We will remove the MiniTest::Spec from Rails and we need these
methods again
Conflicts:
activesupport/lib/active_support/test_case.rb
2012-12-31 13:57:23 -03:00
Jeremy Kemper
8a130ece7e
Test that assert_not returns true. Use assert_raises instead of doing begin/rescue/else.
2012-12-28 21:47:42 -07:00
Steve Klabnik
90397de416
Merge pull request #8641 from arunagw/warning_removed_unused_var
...
Remove 'assigned but unused variable' warning
2012-12-28 09:57:47 -08:00
Arun Agrawal
f71aa354be
Remove 'assigned but unused variable' warning
2012-12-28 23:14:59 +05:30
Jeremy Kemper
f75addd06b
Introduce assert_not to replace 'assert !foo'
2012-12-28 10:34:26 -07:00
Yves Senn
e68505a41a
rewrite order dependent test case. #8185
...
As reported (https://github.com/rails/rails/pull/8185#issuecomment-11702226 )
this test relied on the order a hash was serialized. Comparing the parsed
hash makes the test no longer order dependent.
2012-12-27 17:28:42 +01:00
Jeremy Kemper
b82109495b
Make test logs easier to read.
...
Tagging every message in tests makes the logs really wide. It's great
for grepping, but annoying to open in an editor or a narrow terminal.
Try out a different approach: spit out a heading before each test.
2012-12-26 21:16:05 -07:00
Yves Senn
8787c6e0e5
deprecation warning when BufferedLogger is instantiated
2012-12-25 20:21:14 +01:00