# Problem Testing Active Merchant using peepcode pdf example

**URL:** <https://www.ruby-forum.com/t/problem-testing-active-merchant-using-peepcode-pdf-example/138443>\
**Category:** Rails\
**Created:** [May 23, 2008, 3:11am UTC](https://www.ruby-forum.com/t/problem-testing-active-merchant-using-peepcode-pdf-example/138443 "2008-05-23T03:11:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![traceyz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/f04885/32.png) [@traceyz](https://www.ruby-forum.com/u/traceyz)\
**Post date:** [May 23, 2008, 3:11am UTC](https://www.ruby-forum.com/t/problem-testing-active-merchant-using-peepcode-pdf-example/138443/1 "2008-05-23T03:11:16Z")

</div>

I am trying to set up ActiveMerhcant in my RoR application and using  
the tests that come with the peepcode PDF. I am getting an error when  
I run rake test that I don’t know what to do with, and I am hoping  
someone can give me some guidance.

The application also uses acts\_as\_state\_machine - and I think the  
problem lies there

uninitialized constant Rails::Initializer::ScottBarron  
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/  
dependencies.rb:477:in `const_missing' C:/eclipse/workspace/moneyhats/config/../vendor/plugins/ acts_as_state_machine/trunk/init.rb:4:in`load\_plugin’  
C:/eclipse/workspace/moneyhats/config/…/vendor/plugins/  
acts\_as\_state\_machine/trunk/init.rb:3:in `class_eval' C:/eclipse/workspace/moneyhats/config/../vendor/plugins/ acts_as_state_machine/trunk/init.rb:3:in`load\_plugin’  
c:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:401:in  
`load\_plugin’

I googled for Scott B., and I can see he has been a significant  
contributor , but I don’t know how to interpret or resolve this.
