Spree Extension that adds CPF field in an order
Add spree_cpf to your Gemfile:
Bundle your dependencies and run the installation generator:
bundle bundle exec rails g spree_cpf:install
Set the preference in an initializer such as config/initializers/spree.rb:
Spree.config do |config| config.ship_address_has_cpf = true # Default is false end
Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.
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:
Copyright (c) 2014 Tiago Amaro, released under the MIT License