spec/support/card_spec_helper.rb in card-1.91 vs spec/support/card_spec_helper.rb in card-1.92
- old
+ new
@@ -1,6 +1,9 @@
-helper_path = File.expand_path "../helper/*.rb", __FILE__
-Dir[helper_path].each { |f| require f }
+%w[helper matchers].each do |load_dir|
+ load_path = File.expand_path "../#{load_dir}/*.rb", __FILE__
+ Dir[load_path].each { |f| require f }
+end
+
class Card
# to be included in RSpec::Core::ExampleGroup
module SpecHelper
include RenderHelper