Use pregenerated coupons codes to print and then connect it to a promotion.
Add spree_coupons to your Gemfile:
gem 'spree_coupons'
Bundle your dependencies and run the installation generator:
bundle
bundle exec rails g spree_coupons:install
First bundle your dependencies, then run rake
. rake
will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app
.
bundle
bundle exec rake
When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:
require 'spree_coupons/factories'
Copyright (c) 2016 Dynamo, released under the New BSD License