Elomar França
7bd30b9585
Adding to_key to ActiveResource objects using ActiveModel::Conversion [ #4685 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-26 15:57:27 +02:00
David Chelimsky
163152bfd0
Support configuration of controller.controller_path on instances of
...
ActionView::TestCase::TestController without stubs. Just say:
@controller.controller_path = "path/i/need/for/this/test"
[#4697 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-26 08:49:57 +02:00
Xavier Noria
e3549a8054
get railties/README back to the home page of the API
2010-05-25 17:26:01 +02:00
Santiago Pastorino
78fffac668
Fix test incorrectly using a bare assert to use assert_kind_of
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-24 20:59:53 -07:00
Santiago Pastorino
47d568ed3f
Refactor calculation test to remove unneeded SQLite special case.
...
[#4633 ]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-24 20:54:38 -07:00
Jeremy Kemper
f53a6d8149
i18n: t() handles single keys returning an Array, also
2010-05-24 20:30:21 -07:00
Jeremy Kemper
d8d38bedfd
HTML safety: fix textarea with nil content
2010-05-24 20:18:25 -07:00
Santiago Pastorino
b5f9c8822d
translate method doesn't support arrays anymore and is optimized to be used with strings or symbols
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-24 23:42:20 +02:00
Santiago Pastorino
2b8eb5404e
Revert "translation method for arrays on TranslationHelper module returns an array where values for keys of the form (.|_)html keys are html_safe"
...
This reverts commit 05c95b5c58 .
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-24 23:41:55 +02:00
David Chelimsky
8e583b69e8
Move AV::TC to AV::TC::Behavior [ #4678 state:resolved]
...
- enables alternative testing frameworks to include AV::TC::Behavior
instead of subclassing AV::TC
- also added tests and code for:
- test view delegates :notice to request.flash
- useful since generators generate views that use notice
- test case doesn't try to include modules that are actually
classes
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-24 22:58:46 +02:00
Santiago Pastorino
05c95b5c58
translation method for arrays on TranslationHelper module returns an array where values for keys of the form (.|_)html keys are html_safe
...
[#4675 ]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-24 20:12:43 +02:00
José Valim
59d1c418be
Fix a bug where responders were not working properly on method override.
2010-05-24 13:12:40 +02:00
Jeremy Kemper
69a9669d9d
Missing changelog heading
2010-05-23 09:46:31 -07:00
José Valim
8d5939c096
Fix a bug where I18n fallbacks modules where not included in the proper backend if it was set through config.i18n.backend.
2010-05-23 13:22:19 +02:00
Norman Clarke
f3abc8ac36
Use multibyte proxy class on 1.9, refactor Unicode.
...
Makes String#mb_chars on Ruby 1.9 return an instance of ActiveSupport::Multibyte::Chars to work around 1.9's lack of Unicode case folding.
Refactors class methods from ActiveSupport::Multibyte::Chars into new Unicode module, adding other related functionality for consistency.
[#4594 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-21 12:24:54 -07:00
José Valim
ad4be3d75d
Fix failing test.
2010-05-21 16:20:56 +02:00
Neeraj Singh
cc45a1068f
1.day should respond_to kind_of too
...
[#4656 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-21 16:00:55 +02:00
Neeraj Singh
1bc6b43f53
Replace assert with assert_equal in some test cases
...
[#4654 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-21 16:00:49 +02:00
José Valim
048cf9e922
Fix typo on rackup test (ht: pleax)
2010-05-20 13:49:06 -07:00
Nick Sieger
c0db7840fe
More accurate JRuby gem requirements
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-20 15:18:57 +02:00
Santiago Pastorino
aacf2581cd
refactor evals and adds some __FILE__ and __LINE__
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-20 15:18:57 +02:00
Xavier Noria
7f07cc364a
Merge remote branch 'rails/master'
2010-05-19 23:29:39 +02:00
Xavier Noria
b9fcd8d71f
in Ruby things in general happen at runtime, no need to specify that
2010-05-19 23:27:09 +02:00
Santiago Pastorino
61001e766d
group :mri deleted in favor of RUBY_ENGINE and RUBY_VERSION usage.
...
Allow use json, yajl-ruby and nokogiri on MRI and Rubinius only.
jruby-debug added only for jruby platform
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-19 21:32:45 +02:00
Neeraj Singh
39a246f545
Final iteration of use better testing methods
...
[#4652 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-19 21:31:51 +02:00
Anil Wadghule
bdb2871df7
Fix xml serialization test [ #4650 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-19 13:02:13 +02:00
Santiago Pastorino
5573ab2047
Enable ruby-debug only for MRI
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-19 12:59:53 +02:00
Santiago Pastorino
715f7c0b7c
Fixes a test on transaction_callbacks_test.rb
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-19 12:59:47 +02:00
Santiago Pastorino
59c7b0c23a
Avoid instance variable @output_buffer not initialized
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-19 12:59:29 +02:00
Neeraj Singh
b462952886
Use better assertion methods for testing
...
[#4645 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-19 10:18:36 +02:00
Neeraj Singh
1c3d2a5a60
Updating the doc with the info that class_inheritable_accessor
...
copies properties to child at runtime
2010-05-19 01:29:15 -04:00
Josiah Ivey
695cabce39
Testing guide: Replace removed word
2010-05-18 23:04:10 -05:00
Josiah Ivey
256e13b3a3
Testing guide: Grammar, punctuation, and emphasize that test/unit is only the default
2010-05-18 22:55:15 -05:00
Marius Nuennerich
aa4fe9fb33
fix documentation typo
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-05-18 19:29:17 -03:00
Xavier Noria
b753b4a076
removes deprecations of last_(month|year) from master, they will be deprecated in 2.3 instead
2010-05-19 00:20:10 +02:00
Jeremy Kemper
223d6415d0
Revert "Don't carry default value when changing column for a binary type on MySQL"
...
Broke mysql tests.
This reverts commit edec1afe25 .
Conflicts:
activerecord/test/cases/migration_test.rb
[#3234 state:open]
2010-05-18 11:02:39 -07:00
Étienne Barrié
3809c80cd5
make add_index and remove_index more resilient; new rename_index method; track database limits
...
[#3452 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-18 10:55:41 -07:00
José Valim
d3e62fc57c
Avoid creating a Rack::Response object in the cookie middleware since it may stream the body.
2010-05-18 17:47:56 +02:00
Santiago Pastorino
03c3d1eb84
Fixes transaction callbacks tests
...
[#4640 state:committed]
Signed-off-by: wycats <wycats@gmail.com >
2010-05-18 19:32:37 +04:00
Ian White
b439d85a19
Nested records (re: autosave) are now updated even when the intermediate parent record is unchanged [ #4242 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-18 16:13:00 +02:00
Neeraj Singh
ce20b93606
assert_equal should be used instead of assert
...
[#4629 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-18 16:13:00 +02:00
Neeraj Singh
0ef13afef5
expected value should come first in assert_equal
...
[#4630 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-18 16:13:00 +02:00
Neeraj Singh
d00afeaeed
Use assert_equal correctly in actionmailer test (exposing one as broken)
...
[#4626 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-18 16:12:59 +02:00
Neeraj Singh
0dab076a08
Better error messages for some of ActiveSupport tests
...
[#4635 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-18 16:12:59 +02:00
Neeraj Singh
c00f8e49ad
assert should be replaced with assert_equal in a particular test case
...
[#4636 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-18 16:12:59 +02:00
Pratik Naik
5ddc904941
Remove Model.clear_default_scope
2010-05-18 12:22:23 +01:00
José Valim
c536835957
Cut the fat and make session stores rely on request.cookie_jar and change set_session semantics to return the cookie value instead of a boolean.
2010-05-18 03:18:23 +02:00
rohit
8e3c3b06dc
Fixed numericality validator in ActiveModel to reject hex numbers for floats completely [ #4622 state:commited]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-18 03:10:56 +02:00
rohit
05e3fb45ee
Add a valid hex that shouldn't be valid to ActiveModel numericality tests [ #4622 state:commited]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-18 03:10:55 +02:00
Neeraj Singh
73f0e1a842
Use assert_respond_to because it has better error messaging
...
[#4628 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-18 02:12:06 +02:00