spec/integration/transparent_spec.rb in recurly-0.4.14 vs spec/integration/transparent_spec.rb in recurly-0.4.15

- old
+ new

@@ -88,10 +88,12 @@ response = mock response.should_receive(:[]).at_least(:once).with('Content-Length').and_return '123' response.should_receive(:body).at_least(:once).and_return response_xml subscription = Subscription.new.from_transparent_results(response) - subscription.account.billing_info.errors[:number].should_not be_nil - subscription.account.billing_info.errors[:verification_value].should_not be_nil + subscription.account.billing_info.credit_card.errors[:number].should_not be_empty + subscription.account.billing_info.credit_card.errors[:number].should include('is required') + subscription.account.billing_info.credit_card.errors[:verification_value].should_not be_empty + subscription.account.billing_info.credit_card.errors[:verification_value].should include('is required') end end end