> 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
Introduce an abstraction layer for that site with an API you define.
You''ll have one implementation of that API that just sends requests to
authorize.net. You''ll use this in production.
Implement the same API in a different class, but instead of sending
requests to authorize.net, just hard code some users and roles. Use
this implementation when you run Cucumber.
Aslak
> 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!
>
> Regards,
> Dave Nawara
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>