Sha256: b526cac661aa04e0f3abeb74c675427ae74d803d3893a4de28308101bc770770
Contents?: true
Size: 446 Bytes
Versions: 9
Compression:
Stored size: 446 Bytes
Contents
vendor = Spree::Vendor.first_or_initialize do |v| v.name = 'Test Vendor' end vendor.save! puts "Created Vendor with the name \"#{vendor.name}\"!" user = Spree.user_class.where(email: 'user@vendor.com').first_or_initialize do |u| u.password = u.password_confirmation = 'vendor123' end vendor.users << user unless vendor.users.include?(user) puts "Created Vendor Admin User with an email \"#{user.email}\" and password \"#{user.password}\"!"
Version data entries
9 entries across 9 versions & 2 rubygems