rails/activesupport/test
Logan Leger 7ad541f955 Add #verified and #valid_message? to MessageVerifier
This commit adds a `#verified` method to
`ActiveSupport::MessageVerifier` which will return either `false` when
it encounters an error or the message. `#verify` continues to raise an
`InvalidSignature` exception on error.

This commit also adds a convenience boolean method on `MessageVerifier`
as a way to check if a message is valid without performing the
decoding.
2014-12-01 21:43:16 -06:00
..
autoloading_fixtures fixes circularity check in dependencies 2014-10-25 14:06:33 +02:00
core_ext Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00
dependencies Don't blindly call blame_file! on exceptions in ActiveSupport::Dependencies::Loadable 2013-06-09 18:20:10 -04:00
deprecation Remove deprecated AS::BasicObject, use AS::ProxyObject instead 2013-07-01 22:26:54 -03:00
fixtures Unused classes in AS tests 2013-12-19 16:30:16 +09:00
json Remove redundant to_s in interpolation 2014-10-30 08:48:32 -07:00
notifications ActiveSupport::Notifications::Instrumenter#instrument should yield 2013-03-02 16:05:05 -08:00
testing Use safe_constantize. 2014-09-02 00:41:00 +08:00
xml_mini Rewind StringIO instances before be parsed again 2013-06-16 00:32:33 +02:00
abstract_unit.rb Default to sorting user's test cases for now 2014-09-08 05:32:16 -07:00
autoload_test.rb fix autoload tests 2014-10-05 20:28:36 +03:00
benchmarkable_test.rb
broadcast_logger_test.rb
caching_test.rb Keep the first string we fetch 2014-08-27 01:04:56 +09:30
callback_inheritance_test.rb Removed unused setup 2013-04-10 16:57:12 +05:30
callbacks_test.rb Unused classes in AS tests 2013-12-19 16:30:16 +09:00
class_cache_test.rb
clean_backtrace_test.rb missing activesupport test coverage 2014-07-19 17:15:40 -07:00
clean_logger_test.rb
concern_test.rb Introduce Concern#class_methods and Kernel#concern 2014-02-23 12:06:23 -07:00
configurable_test.rb Make sure multiline string is not accepted by the regexp 2013-12-19 17:28:19 -02:00
constantize_test_cases.rb Use safe_constantize. 2014-09-02 00:41:00 +08:00
dependencies_test_helpers.rb fixes circularity check in dependencies 2014-10-25 14:06:33 +02:00
dependencies_test.rb dependencies.rb: keep the decorated #load and #require private [closes #17553] 2014-11-10 14:29:29 -08:00
deprecation_test.rb Keep quietly and capture undeprecated on your suite 2014-07-15 17:56:27 -03:00
descendants_tracker_test_cases.rb fix assertions 2012-10-18 13:14:43 -07:00
descendants_tracker_with_autoloading_test.rb fix some typos in AS 2013-03-30 14:01:42 +05:30
descendants_tracker_without_autoloading_test.rb Improve the test code for #8422 2013-10-24 20:14:30 -02:00
file_update_checker_test.rb
gzip_test.rb added compress options for gzip 2013-02-10 20:01:42 +09:00
hash_with_indifferent_access_test.rb Add necessary 'require reverse_merge' to HAWI.rb 2014-10-17 09:11:04 -07:00
i18n_test.rb remove unnecessary calling of I18n.backend.store_translations(empty, {}) 2014-06-15 08:53:58 +05:30
inflector_test_cases.rb Fix for inflector's incorrect camelCase replacement for acronyms 2014-09-06 04:56:25 +09:30
inflector_test.rb Replace Enumerable#reverse.each with Enumerable#reverse_each 2014-10-13 11:47:16 +01:00
key_generator_test.rb missing activesupport test coverage 2014-07-19 17:15:40 -07:00
lazy_load_hooks_test.rb
load_paths_test.rb Drop extra variable from test 2013-06-12 11:18:35 +05:30
log_subscriber_test.rb
logger_test.rb Add ActiveSupport::Logger#silence that works the same as the old Logger#silence extension 2012-12-21 19:15:36 +01:00
message_encryptor_test.rb Merge pull request #10635 from vipulnsward/change_to_strict 2013-12-06 08:08:28 -08:00
message_verifier_test.rb Add #verified and #valid_message? to MessageVerifier 2014-12-01 21:43:16 -06:00
multibyte_chars_test.rb Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00
multibyte_conformance_test.rb Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00
multibyte_proxy_test.rb missing activesupport test coverage 2014-07-19 17:15:40 -07:00
multibyte_test_helpers.rb Avoid mutating the constants in a test case 2014-08-16 10:23:50 +09:00
multibyte_unicode_database_test.rb
notifications_test.rb Bug fix: Evented notification subscribers can handle published events 2013-05-17 16:27:23 -07:00
number_helper_i18n_test.rb remove unnecessary calling of I18n.backend.store_translations(empty, {}) 2014-06-15 08:53:58 +05:30
number_helper_test.rb Fixes the digits counter of AS's NumberToRoundedConverter 2014-08-20 16:25:35 +02:00
option_merger_test.rb Add implicit receiver support to Object#with_options 2014-07-29 16:11:48 -04:00
ordered_hash_test.rb Fix OrderedHash.select to return self instance. 2014-03-07 12:30:20 -05:00
ordered_options_test.rb fix some typos in AS 2013-03-30 14:01:42 +05:30
rescuable_test.rb Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00
safe_buffer_test.rb Fixes interpolation on SafeBuffer 2013-12-14 10:10:47 +00:00
security_utils_test.rb Add AS::SecurityUtils.secure_compare for constant time string comparison 2014-10-23 14:54:06 -03:00
string_inquirer_test.rb Alias refute methods to assert_not and perfer assert_not on tests 2012-12-31 13:58:52 -03:00
subscriber_test.rb Fix assertion arguments order 2014-07-31 08:56:22 -03:00
tagged_logging_test.rb Revert "make new rails apps log to STDOUT" 2013-03-15 10:38:00 -07:00
test_case_test.rb Default to sorting user's test cases for now 2014-09-08 05:32:16 -07:00
time_travel_test.rb Move date and time requires to time_travel_test, also include 2014-08-19 13:17:23 -07:00
time_zone_test_helpers.rb Extract out with_env_tz helper method. 2014-06-18 19:46:04 +08:00
time_zone_test.rb Use Hash#each_key instead of Hash#keys.each 2014-09-29 17:27:10 +02:00
transliterate_test.rb [ci skip] use proper apostrophe 2014-08-25 22:03:31 +05:30
xml_mini_test.rb Merge pull request #11656 from emre-basala/xml_mini_test 2014-04-10 14:38:22 -03:00