# Problem with Integration Test

**URL:** <https://discuss.rubyonrails.org/t/problem-with-integration-test/6537>\
**Category:** rubyonrails-talk\
**Created:** [December 31, 2006, 3:16am UTC](https://discuss.rubyonrails.org/t/problem-with-integration-test/6537 "2006-12-31T03:16:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Asa](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@Asa](https://discuss.rubyonrails.org/u/Asa)\
**Post date:** [December 31, 2006, 3:16am UTC](https://discuss.rubyonrails.org/t/problem-with-integration-test/6537/1 "2006-12-31T03:16:18Z")

</div>

I am trying to setup an integration test and I keep getting the following error:

ruby test/integration/portfolios\_test.rb /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active\_support/dependencies.rb:123:in `const\_missing': uninitialized constant IntegrationTest (NameError) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from test/integration/portfolios\_test.rb:3

Empty code shell for the integration test: portfolios\_test.rb:

require File.dirname(\_\_FILE\_\_) + '/../test\_helper'

class PortfolioTest \< ActionController::IntegrationTestSession end

Any ideas? I am using the syntax from Recipe 43 in the Rails Cookbook.

Thanks! Asa
