diff options
author | robertomiranda <rjmaltamar@gmail.com> | 2014-03-13 19:16:49 -0500 |
---|---|---|
committer | robertomiranda <rjmaltamar@gmail.com> | 2014-03-14 15:22:02 -0500 |
commit | a2fb164a4fadf0f34055089b75ef9077bded8524 (patch) | |
tree | a123c94a3c1ec749dc1d72419c6b99bed27fbedd /railties/test/application | |
parent | 3560d7aad7c9bffc903ec1378c1c1d7c738f5b86 (diff) | |
download | rails-a2fb164a4fadf0f34055089b75ef9077bded8524.tar.gz rails-a2fb164a4fadf0f34055089b75ef9077bded8524.tar.bz2 rails-a2fb164a4fadf0f34055089b75ef9077bded8524.zip |
Add Public Api for register new extensions for Rake Notes
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/rake/notes_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/test/application/rake/notes_test.rb b/railties/test/application/rake/notes_test.rb index 05f6338b68..62ab28082d 100644 --- a/railties/test/application/rake/notes_test.rb +++ b/railties/test/application/rake/notes_test.rb @@ -175,6 +175,11 @@ module ApplicationTests end end + test 'register a new extension' do + SourceAnnotationExtractor::Annotation.register_extensions(".test1", ".test2") { |tag| /#{tag}/ } + assert SourceAnnotationExtractor::Annotation.extensions[/(\.test1|\.test2)/] + end + private def boot_rails super |