Skip to content

DynamoMTL/spree_waiting_list

Repository files navigation

Spree Waiting List

Build Status Code Climate Test Coverage Gem Version

A waiting list extension for Spree.

Users and guests can request to be notified via email when a product/variant comes back in stock.

Installation

Add spree_waiting_list to your Gemfile:

gem 'spree_waiting_list'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_waiting_list: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 should be regenerated by using rake test_app.

bundle
bundle exec rake test_app
bundle exec rspec spec

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

Copyright (c) 2015 Joshua Nussbaum, released under the New BSD License