Skip to content

crowdint/spree_random_subscriptions

Repository files navigation

SpreeRandomSubscriptions

Build Status

Allows you to have subscription products.

When a product subscription is paid, a subscription is created, and when a subscription is created an order with the next item to ship is created.

The next item to ship is picked randomly from all non-subscription in-stock products.

Installation

Add spree_random_subscriptions to your Gemfile:

gem 'spree_random_subscriptions'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_random_subscriptions:install

Testing

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_random_subscriptions/factories'

Copyright (c) 2014 [name of extension creator], released under the New BSD License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published