spec/test_app/spec/factories/designs.rb in newsletter-3.2.6 vs spec/test_app/spec/factories/designs.rb in newsletter-3.2.7

- old
+ new

@@ -1,9 +1,11 @@ # 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(Newsletter::PLUGIN_ROOT,'designs','exports','example-export.yaml') - Newsletter::Design.import(file,name) + design = Newsletter::Design.import(file,name) + design.update_attribute(:stylesheet_text, ".blah{background-color: red}") + design end FactoryGirl.define do factory :design, class: Newsletter::Design do