[rspec-users] Webrat and Rails 2.3.12
chrismear at gmail.com
Tue Aug 16 02:54:01 EDT 2011
On 9 Aug 2011, at 01:37, Matias wrote:
> Im trying to integrate webrat in a rails 2.3.12:
> I get this OUTPUT:
> NoMethodError in 'Campaign in first step testing request'
> undefined method `visit' for
You're running a model spec here. A model spec is for testing a model class directly, not for simulating requests to your app. If you want to run requests, you need to be writing an integration spec.
More information about the rspec-users