test/test_hoe.rb in hoe-2.9.0 vs test/test_hoe.rb in hoe-2.9.1.b.2
- old
+ new
@@ -20,11 +20,11 @@
def test_activate_plugins
hoe = Hoe.spec 'blah' do
developer 'author', 'email'
end
- initializers = hoe.methods.grep(/^initialize/)
+ initializers = hoe.methods.grep(/^initialize/).map { |s| s.to_s }
assert_includes initializers, 'initialize_clean'
assert_includes initializers, 'initialize_flay'
assert_includes initializers, 'initialize_flog'
assert_includes initializers, 'initialize_package'
@@ -51,10 +51,12 @@
spec = Hoe.spec 'blah' do
developer 'author', 'email'
end
- assert_includes spec.methods.grep(/^initialize/), 'initialize_hoerc'
+ methods = spec.methods.grep(/^initialize/).map { |s| s.to_s }
+
+ assert_includes methods, 'initialize_hoerc'
end
ensure
Hoe.instance_variable_get(:@loaded).delete :hoerc
Hoe.plugins.delete :hoerc
$LOAD_PATH.replace load_path