postrank-labs/goliath — Issue #96: Unable to Run Test
Author: hiwaylon
Created: 2011-10-19 12:23:11+00:00
State: open

### Description
I am unable to run a simple `rspec` test using `goliath/spec/spec_helper.rb`.

### Details
In an attempt to create a simple request handler test I am encountering the following error:

```sh
$ rspec spec
ruby-1.9.2-p0/gems/goliath-0.9.2/lib/goliath/rack/builder.rb:12:in `': uninitialized constant Goliath::Rack::Builder::Params (NameError)
<...snip...>
```

Here is my `spec_helper.rb`:

```ruby
require 'goliath/test_helper'

Goliath.env = :test

RSpec.configure do |c|
c.include Goliath::TestHelper, :example_group => {
:file_path => /spec\/integration/
}
end
```

Which is required at the top of some `_spec.rb` file. This file is never executed so I have omitted it here (it's a stub anyway since I've never got past this point).

### Notes
* I'm brand new to Goliath so I very well could be making some obvious mistake.
* I've omitted the section from the example `spec_helper.rb` about `bundler`. I've installed Goliath from master and have my own project so I see no reason to run bundler from the spec helper. Please correct me if I am wrong.
* [Here is a link](http://groups.google.com/group/goliath-io/browse_thread/thread/2f7bee6ec9e7b6c5) to the original post on Goliath's Google groups.