Forum: RSpec [Cucumber, rspec-rails] uninitialized constant ActionController::UrlEncodedPairParser

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ef0db53920b243d6758c2f6b1306df0d?d=identicon&s=25 Steve Ross (cwd)
on 2009-02-16 23:19
(Received via mailing list)
It seems there's a known anomaly between rspec-rails and Rails 2.3.
That causes the error "uninitialized constant
ActionController::UrlEncodedPairParser". I know there is a fix in
somebody's repo, but what's the best way to get a working gem version
of webrat/cucumber/rspec/rspec-rails that will work with 2.2.2 and
2.3? Scrubbing the gems off and installing the latest release gems
don't pull in the fix.

Thanks
5d38ab152e1e3e219512a9859fcd93af?d=identicon&s=25 David Chelimsky (Guest)
on 2009-02-16 23:53
(Received via mailing list)
Sent from my iPhone

On Feb 16, 2009, at 4:17 PM, "s.ross" <cwdinfo@gmail.com> wrote:

> It seems there's a known anomaly between rspec-rails and Rails 2.3.
> That causes the error "uninitialized constant
> ActionController::UrlEncodedPairParser". I know there is a fix in
> somebody's repo, but what's the best way to get a working gem
> version of webrat/cucumber/rspec/rspec-rails that will work with
> 2.2.2 and 2.3? Scrubbing the gems off and installing the latest
> release gems don't pull in the fix.

The latest gems from github work with rails 2.3:

gem install dchelimsky-rspec-rails

(that will pull rspec as a dependency as well)
314c6f48cee7a540473e6ff0178a78eb?d=identicon&s=25 Mike Gaffney (Guest)
on 2009-02-17 00:22
(Received via mailing list)
They are now using using the parser in Rack.

Likely Rspec doesn't have this yet on a release or possibly even master.
Take a look at:

http://webrat.lighthouseapp.com/projects/10503/tic...

For a similar patch.

-Mike
57e939ff00f9df2670a09f417c08da5e?d=identicon&s=25 Josh Knowles (Guest)
on 2009-02-17 00:26
(Received via mailing list)
On Mon, Feb 16, 2009 at 5:28 PM, David Chelimsky <dchelimsky@gmail.com>
wrote:
> The latest gems from github work with rails 2.3:

The problem is in Webrat.  I have a hack in my fork, but we need to
figure out a longer-term solution.  Bug is open, hopefully we can
knock it out this week.  Patches welcome.

--
Josh Knowles
phone: 509-979-1593
email:  joshknowles@gmail.com
web:    http://joshknowles.com
Ef0db53920b243d6758c2f6b1306df0d?d=identicon&s=25 Steve Ross (cwd)
on 2009-02-17 00:32
(Received via mailing list)
Applying this patch to webrat:

http://webrat.lighthouseapp.com/attachments/87914/...

did the trick for 2.2.2 and 2.3.

Eek! :)
5d38ab152e1e3e219512a9859fcd93af?d=identicon&s=25 David Chelimsky (Guest)
on 2009-02-17 00:54
(Received via mailing list)
Sent from my iPhone

On Feb 16, 2009, at 4:42 PM, Mike Gaffney <mr.gaffo@gmail.com> wrote:

> They are now using using the parser in Rack.
>
> Likely Rspec doesn't have this yet on a release or possibly even
> master.

Actually we do. Grab the latest!
This topic is locked and can not be replied to.