Shopify/active_merchant — pull request #205 by nurey (2011-10-12 16:10:11+00:00)
Title: Fix secure profiles in beanstream

This fixes some failing tests for beanstream, most notably "test_successful_add_to_vault_and_use"
```
1) Error:
test_successful_add_to_vault_and_use(RemoteBeanstreamTest):
NoMethodError: undefined method `type' for 87982:Fixnum
/Volumes/Devel/active_merchant/lib/active_merchant/billing/gateway.rb:109:in `card_brand'
/Volumes/Devel/active_merchant/lib/active_merchant/billing/gateway.rb:114:in `card_brand'
/Volumes/Devel/active_merchant/lib/active_merchant/billing/gateways/beanstream/beanstream_core.rb:93:in `purchase_action'
/Volumes/Devel/active_merchant/lib/active_merchant/billing/gateways/beanstream.rb:84:in `purchase'
test/remote/gateways/remote_beanstream_test.rb:192:in `test_successful_add_to_vault_and_use'
/Users/ilia/.rvm/gems/ruby-1.9.2-p290/gems/mocha-0.10.0/lib/mocha/integration/mini_test/version_142_to_172.rb:27:in `run'
```

See also https://github.com/Shopify/active_merchant/issues/204