X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=vendor%2Frails%2Factivesupport%2Flib%2Factive_support%2Ftesting%2Fdeclarative.rb;fp=vendor%2Frails%2Factivesupport%2Flib%2Factive_support%2Ftesting%2Fdeclarative.rb;h=0000000000000000000000000000000000000000;hb=36d9f3351a3b4e8159279445190e2287ffdea86c;hp=cb6a5844ebc76212074f9f721221f1d55ad92615;hpb=913cf6054b1d29b5d2f5e620304af7ee77cc1f1f;p=feedcatcher.git diff --git a/vendor/rails/activesupport/lib/active_support/testing/declarative.rb b/vendor/rails/activesupport/lib/active_support/testing/declarative.rb deleted file mode 100644 index cb6a584..0000000 --- a/vendor/rails/activesupport/lib/active_support/testing/declarative.rb +++ /dev/null @@ -1,21 +0,0 @@ -module ActiveSupport - module Testing - module Declarative - # test "verify something" do - # ... - # end - def test(name, &block) - test_name = "test_#{name.gsub(/\s+/,'_')}".to_sym - defined = instance_method(test_name) rescue false - raise "#{test_name} is already defined in #{self}" if defined - if block_given? - define_method(test_name, &block) - else - define_method(test_name) do - flunk "No implementation provided for #{name}" - end - end - end - end - end -end