Mon Aug 13 06:45:24 EST 2007 Matt Palmer * Stop the plugin from causing a spurious test suite run from within Rake diff -rN -u old-bugfixes/lib/link_validator.rb new-bugfixes/lib/link_validator.rb --- old-bugfixes/lib/link_validator.rb 2008-10-20 23:30:58.876878662 +1100 +++ new-bugfixes/lib/link_validator.rb 2008-10-20 23:30:58.880886076 +1100 @@ -1,11 +1,9 @@ -require 'test/unit' require 'net/http' require 'uri' module Http module Test class LinkValidator - include ::Test::Unit::Assertions include ::Http::Test::Assertions include UrlSelector @@ -20,6 +18,7 @@ end def initialize(url, options = {}) + self.class.send(:include, ::Test::Unit::Assertions) self.start_url = strip_anchor(url) # Default values for options diff -rN -u old-bugfixes/lib/validate_filter.rb new-bugfixes/lib/validate_filter.rb --- old-bugfixes/lib/validate_filter.rb 2008-10-20 23:30:58.876878662 +1100 +++ new-bugfixes/lib/validate_filter.rb 2008-10-20 23:30:58.880886076 +1100 @@ -3,10 +3,10 @@ class ValidateFilter attr_accessor :request, :response, :params, :validators - include ::Test::Unit::Assertions include ::Http::Test::Assertions def initialize(controller) + self.class.send(:include, ::Test::Unit::Assertions) self.request = controller.request self.response = controller.response self.params = controller.params