Charlie Somerville
d622643e47
fix tests
2014-01-21 14:30:00 +11:00
Charlie Somerville
3f0241a613
use assert_includes so we get a useful failure message
2014-01-21 14:28:01 +11:00
Charlie Somerville
8f6bafc333
💀 whiny nils
2013-10-29 20:25:48 -07:00
John Barnette
75638c576b
Pull in ActiveSupport::Concern
...
We have quite a few module dependency situations that this can help
clarify.
2013-10-29 12:03:54 -05:00
Charlie Somerville
bca938dae2
skip over memcached tests
2013-09-17 12:08:57 +10:00
Charlie Somerville
7b6670cc08
fix test
2013-08-27 20:51:14 +10:00
Charlie Somerville
ed2d852bdc
backport ActiveSupport::MessageVerifier from Rails 3
2013-08-27 20:27:31 +10:00
Charlie Somerville
74f7149ef6
2.0.0 no longer allows symbols in String#start_with?
2013-08-08 20:37:30 -07:00
Charlie Somerville
e423b0095f
fix broken tests and warnings
2013-08-07 00:46:51 -07:00
Charlie Somerville
7f93fa6ddc
oops
2013-08-07 00:08:51 -07:00
Charlie Somerville
3f416f3a54
remove obsoleted usage of URI.unescape
2013-08-07 00:02:27 -07:00
Charlie Somerville
5e079feafa
whoops
2013-08-06 23:49:30 -07:00
Charlie Somerville
06d4ca0254
establish a baseline by skipping all tests failing before 2.0.0
2013-08-06 17:41:45 -07:00
Corey Donohoe
42524c2bf1
backport patches for CVE-2013-0333
...
https://groups.google.com/forum/?fromgroups=#!topic/rubyonrails-security/1h2DR63ViGo
2013-01-28 13:23:53 -08:00
Aaron Patterson
e0774e4730
fixing utf8 escape vulerability
2011-08-16 14:58:39 -07:00
Andrey Voronkov
b1c36b7088
Added tests for OrderedHash merging with block.
2011-06-16 23:56:39 -07:00
Jamis Buck
3afa5385c9
Revert "make TestCaseTest work for pre-1.9 rubies, too"
...
This reverts commit 8378a44ff9 .
2011-01-19 15:57:16 -07:00
Jamis Buck
c545331f9e
Revert "scrub instance variables from test cases on teardown"
...
This reverts commit b5cf2b4b82 .
2011-01-19 15:57:16 -07:00
Jamis Buck
cd0ecff00b
Revert "rein in GC during tests by making them run (at most) once per second"
...
This reverts commit a0c761dc6b .
2011-01-19 15:57:14 -07:00
Jamis Buck
a0c761dc6b
rein in GC during tests by making them run (at most) once per second
...
this can provide a significant performance boost during testing, by
preventing the GC from running too frequently.
2011-01-19 10:27:53 -07:00
Jamis Buck
b5cf2b4b82
scrub instance variables from test cases on teardown
...
this prevents test state from accumulating, resulting in leaked
objects and slow tests due to overactive GC.
2011-01-19 10:12:18 -07:00
Jamis Buck
8378a44ff9
make TestCaseTest work for pre-1.9 rubies, too
2011-01-19 10:08:02 -07:00
Michael Koziarski
6d916329b8
Require thread explicitly rather than relying on rubygems to do it.
2010-12-20 11:16:55 +13:00
Aaron Patterson
8beb84fa33
calling correct method on minitest for test name when teardown callback fails
2010-10-04 09:29:37 -07:00
Aaron Patterson
a448e74661
[ #5406 state:resolved] calling the correct method on minitest to obtain the test name
2010-10-04 09:28:21 -07:00
Andrew Kaspick
9476d628a3
memoized protected methods should remain protected
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2010-09-27 11:50:54 +13:00
Leigh Caplan
27651c1fad
Test to ensure that falsy objects aren't wrapped by deprecation proxies
2010-07-26 09:54:26 -07:00
Santiago Pastorino
a5d8c95a7c
Changes the usage of Object#returning with Object#tap
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-07-25 22:49:06 +02:00
Aaron Patterson
7b6383f263
fixing performance regression from 2.3.5 -> 2.3.8
2010-07-15 15:59:19 -07:00
Leigh Caplan
80473e035a
test that unknown zones don't store mapping keys
...
[#4942 ]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-28 22:20:34 +02:00
José Valim
0e9190c902
Tidy up tests in previous commit since they did not assure an OrderedHash is returned (the test would pass for an array and would pass by chance for hashes).
...
[#4875 state:resolved]
2010-06-26 18:16:09 +02:00
chaitanyav
449cf50d85
Add OrderedHash#invert to preserve order in ruby 1.8
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-26 18:13:45 +02:00
Paul Mucur
05defcd63a
Alias ActiveSupport::OrderedHash#update to ActiveSupport::OrderedHash.merge!
...
This ensures that an OrderedHash's keys are set up appropriately when using update.
[#4973 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-06-25 15:18:39 -07:00
Xavier Noria
4a745ca670
deprecates load_(once_)paths in dependencies and app config in favor of autolaod_(once_)paths
2010-06-24 00:00:45 +02:00
Xavier Noria
ed8cabcec2
deprecates Array#random_element in favor of Array#sample, backported from Ruby 1.9, thanks to Marc-Andre Lafortune
2010-06-05 02:11:33 +02:00
Jeremy Kemper
a815f0c5a3
Shift SafeBuffer#concat responsibility over to rails_xss
2010-05-25 14:27:40 -07:00
Santiago Pastorino
a9032c885f
Error messages for asserts
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-24 16:05:39 -07:00
Jeremy Kemper
e8ba5265e0
Work around strange Ruby 1.9 autoload issue by using absolute load paths for tests (ditto for other components' tests)
2010-05-24 16:05:34 -07:00
Jeremy Kemper
60e82a3ca2
Move tests for deprecated String#html_safe! to plugin
2010-05-23 22:07:47 -07:00
Xavier Noria
25ec61330b
1.9 compat: deprecated last_(month|year) in favor of prev_(month|year)
2010-05-19 00:59:02 +02:00
Rizwan Reza
32b0b5f7b2
Deprecate Array#rand in favor of Array#random_element [ #4555 stated:committed]
...
Signed-off-by: Xavier Noria <fxn@hashref.com >
2010-05-17 23:56:44 +02:00
Marius Nuennerich
0d767fd24f
repair the activesupport message encryptor tests for me, do so in the same way as jeremy did with message verifier
...
[#4517 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-01 10:08:05 -07:00
Sam Elliott and Santiago Pastorino
c401102a27
Is not nessesary to have @_rails_html_safe instance var when the string is unsafe, also it breaks to_yaml [ #3535 state:committed]
2010-04-23 09:35:18 +12:00
Santiago Pastorino
49943a7120
TimeZones lazy load
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-20 21:40:49 -07:00
Jeremy Kemper
2401af4d6f
MemoryStore#read_multi(*keys) for dev-mode compatibility with memcache store
2010-04-19 00:18:20 -07:00
Jeremy Kemper
8b79c7c202
Fix 1.9-specific syntax error in test
2010-04-17 12:37:56 -07:00
Mislav Marohnić
4b36dafb35
String#starts/ends_with? should return false for non-string argument, not raise error
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-17 00:07:26 -07:00
Jeremy Kemper
c55cdd816c
Distinguish test for 1.8.6 compat
2010-04-16 11:35:33 -07:00
Mislav Marohnić
c519215aa8
ruby 1.8.7 compat: starts/ends_with? doesn't cast to string
...
`starts/ends_with?` methods shouldn't cast argument to string because
ruby 1.8.7 doesn't seem to do that. for example:
"foobar".ends_with?(:bar)
# => true in ActiveSupport implementation, false in ruby 1.8.7
[#3199 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-16 11:22:50 -07:00
Yaroslav Markin
a84e9b4f31
Fix Array#to_xml to produce valid markup when working with namespaced classes [ #3624 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-10 18:16:46 +02:00