features/support/paths.rb in refinerycms-testing-0.9.9.22 vs features/support/paths.rb in refinerycms-testing-1.0.0
- old
+ new
@@ -1,7 +1,7 @@
-::Refinery::Plugins.registered.map{|p|
- p.pathname.join('features', 'support', 'paths.rb')
+([Rails.root] | ::Refinery::Plugins.registered.pathnames).map{|path|
+ path.join('features', 'support', 'paths.rb')
}.reject{|p| !p.exist?}.each do |paths|
require paths
end
module NavigationHelpers
@@ -19,9 +19,10 @@
# end
# end
# end
# end
# end
+
NavigationHelpers::Refinery.constants.each do |name|
begin
if (mod = "NavigationHelpers::Refinery::#{name}".constantize)
mod.module_eval %{alias :#{name.downcase}_path_to :path_to}
include mod