[rspec-users] Cucumber + Authorize.net CIM

David Nawara lists at ruby-forum.com
Mon May 18 13:48:34 EDT 2009

Hi all,

I'm curious how one would recommend testing authorize.net customer
information manager storage with cucumber stories.

In my checkout process testing, my code sends user profile/card/address
information to the authorize.net test servers, which then stores the
sensitive data for me.  Obviously, transactions do not remove this data,
as it's not in my database.  My models are set to destroy the data with
callbacks, but since destroys aren't called on my models these callbacks
are never triggered.  Therefor, subsequent tests fail since I have
artifacts left on the Authorize.net CIM.

I'm reluctant to remove use_transactional_fixtures, but I don't really
see any other options or hooks to use to fix my situation, short of
using a Before hook that manually destroys all models in my test db.

Any help greatly appreciated!

Dave Nawara
Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list