spec/integration/spike.rb in mousetrap-0.4.2 vs spec/integration/spike.rb in mousetrap-0.4.3

- old
+ new

@@ -40,24 +40,38 @@ #create_customer destroy_all_customers customer = Factory :new_customer customer.save + api_customer = Mousetrap::Customer[customer.code] puts api_customer.to_yaml puts '-' * 80 -customer_only_fields = Mousetrap::Customer.new \ - :first_name => 'first', - :last_name => 'last', - :company => 'company', - :email => 'random@example.com', - :code => customer.code +Mousetrap::Subscription.update customer.code, { + :billing_first_name => 'x', + :billing_last_name => 'y', + :credit_card_number => '5555555555554444', + :credit_card_expiration_month => '05', + :credit_card_expiration_year => '2013', + :billing_zip_code => '31415' +} -customer_only_fields.save - api_customer = Mousetrap::Customer[customer.code] puts api_customer.to_yaml +puts '-' * 80 + +#customer_only_fields = Mousetrap::Customer.new \ + #:first_name => 'first', + #:last_name => 'last', + #:company => 'company', + #:email => 'random@example.com', + #:code => customer.code + +#customer_only_fields.save + +#api_customer = Mousetrap::Customer[customer.code] +#puts api_customer.to_yaml #code = "rvhljmvenp@example.com" #api_customer = Mousetrap::Customer[code] ##puts api_customer.to_yaml