# ActiveMerchant unit tests

**URL:** <https://www.ruby-forum.com/t/activemerchant-unit-tests/185340>\
**Category:** Rails\
**Created:** [March 18, 2010, 1:02pm UTC](https://www.ruby-forum.com/t/activemerchant-unit-tests/185340 "2010-03-18T13:02:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Commander\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a8b319/32.png) [@Commander\_J](https://www.ruby-forum.com/u/Commander_J)\
**Post date:** [March 18, 2010, 1:02pm UTC](https://www.ruby-forum.com/t/activemerchant-unit-tests/185340/1 "2010-03-18T13:02:57Z")

</div>

Hi,

I’m testing my ActiveMerchant plugin installation with the iDeal payment  
method. One test keeps failing even though I’ve inserted all the  
credentials. The other test file, remote\_ideal\_test.rb, completes 100%  
of  
the tests with the same credentials.

Any thoughts on this error?

Best regards,  
CmdJohnson

* * *

Loaded suite  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake\_test\_loader  
Started  
…F…  
Finished in 2.967798 seconds.

1. Failure:  
test\_posts\_data\_with\_ssl\_to\_acquirer\_url\_and\_return\_the\_correct\_response(IdealTestCases::GeneralTest)  
[./test/unit/…/…/lib/active\_merchant/billing/gateways/ideal.rb:327:in  
`post\_data’  
./test/unit/gateways/ideal\_test.rb:130:in `send’  
./test/unit/gateways/ideal\_test.rb:130:in  
`test\_posts\_data\_with\_ssl\_to\_acquirer\_url\_and\_return\_the\_correct\_response’]:  
unexpected invocation:  
ActiveMerchant::Billing::IdealResponse.new(‘response’, {:test =\> false})  
unsatisfied expectations:

- expected exactly once, not yet invoked:  
ActiveMerchant::Billing::IdealResponse.new(‘response’, {:test =\> true})  
satisfied expectations:
- expected exactly once, already invoked once:  
#ActiveMerchant::Billing::IdealGateway:0x7f1d474d7d88.ssl\_post(’  
[https://ideal.secure-ing.com:443/ideal/iDeal](https://ideal.secure-ing.com:443/ideal/iDeal)’, ‘data’)

690 tests, 2026 assertions, 1 failures, 0 errors  
rake aborted!  
Command failed with status (1): [/usr/bin/ruby1.8 -I"lib" -rubygems  
"/usr/l…]

(See full trace by running task with --trace)
