ref: master
plugins/products/test/test_helper.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
require 'test_helper' module Noosfero::Factory def defaults_for_products_plugin_product_category defaults_for_category end def defaults_for_products_plugin_product { name: 'Product ' + factory_num_seq.to_s } end def defaults_for_products_plugin_production_cost { name: 'Production cost ' + factory_num_seq.to_s } end def defaults_for_products_plugin_qualifier { name: 'Qualifier ' + factory_num_seq.to_s, environment_id: 1 } end def defaults_for_qualifier defaults_for_products_plugin_qualifier end def defaults_for_products_plugin_certifier defaults_for_qualifier.merge({ name: 'Certifier ' + factory_num_seq.to_s }) end def defaults_for_products_plugin_input { } end def defaults_for_products_plugin_price_detail { } end def defaults_for_unit { singular: 'Litre', plural: 'Litres', environment_id: 1 } end end |