spec/test_app/spec/factories/designs.rb in newsletter-3.0.2 vs spec/test_app/spec/factories/designs.rb in newsletter-3.2.0

- old
+ new

@@ -1,8 +1,8 @@ # Read about factories at https://github.com/thoughtbot/factory_girl def import_design(file=nil, name=nil) name ||= Faker::Company.bs.split(/\s+/).each(&:capitalize).join(' ') - file ||= File.join(Rails.root,'..','..','designs','exports','example-export.yaml') + file ||= File.join(Newsletter::PLUGIN_ROOT,'designs','exports','example-export.yaml') Newsletter::Design.import(file,name) end FactoryGirl.define do factory :design, class: Newsletter::Design do