- Refactor and clean up the remote specs a bit more
This is a vast simplification over the previous code, since RSpec has fixed the behavior of "before(:all)" when used with nested describe/context blocks
Adds code for calling Component by ID
Added: - Add Chargify::ProductFamily#coupons - Add Chargify::ProductFamily#products - Add Chargify::Customer::Subscription Removed: - Bump minimum ActiveResource version to 2.3.5 - Remove Chargify::Coupon.find_all_by_product_family_id - Commented out all remote tests until they can be revived Fixes: - Scope Chargify::ProductFamily#products properly - Scope Chargify::ProductFamily#components properly - Scope Chargify::Customer#subscriptions properly
- ActiveResource does not play nice
- Add coupon specs to cover some existing functionality
- Add specific gem versions to the test group
Please honor subsequent changes to configuration
Added nested component resource under product families.
…to be the only way to get pricing information for components
NIL check for missing payment profile for subscriptions
I was trying to access the payment_profile of a subscription that did not have one. When doing so an Undefined method "credit_card" exception was being thrown. I added a check to the payment_profile method to check and see if the instance responds to credit_card before attempting to return it.