spec/spec_helper.rb in radiant-copy_move-extension-2.4.3 vs spec/spec_helper.rb in radiant-copy_move-extension-2.4.4

- old
+ new

@@ -10,9 +10,15 @@ end end require "#{RADIANT_ROOT}/spec/spec_helper" Dataset::Resolver.default << (File.dirname(__FILE__) + "/datasets") +# Include any datasets from loaded extensions +Radiant::Extension.descendants.each do |extension| + if File.directory?(extension.root + "/spec/datasets") + Dataset::Resolver.default << (extension.root + "/spec/datasets") + end +end if File.directory?(File.dirname(__FILE__) + "/matchers") Dir[File.dirname(__FILE__) + "/matchers/*.rb"].each {|file| require file } end \ No newline at end of file