[rspec-users] Rspec 2, Rails 3 and Webrat
Rodrigo Rosenfeld Rosas
lbocseg at yahoo.com.br
Fri Jun 11 23:17:20 EDT 2010
Apparently Webrat is not yet compatible with Rails 3:
http://github.com/brynary/webrat/blob/master/lib/webrat/integrations/rails.rb
line 2: require "action_controller/integration"
action_controller/integration.rb does exist in Rails 2 but not in Rails
3, but I didn't find any branch for Rails 3 in webrat's repository.
I'll give Capybara another try. I had already tried it before but didn't
change to it because I couldn't get the Drag & Drop javascript test to
work anyway, but it seems to be a good replacement to Webrat's and there
seems to be plans to merge them...
Does anyone here use Capybara with Rspec2 and Rails 3 without Cucumber
to write integration tests successfully?
Thanks,
Rodrigo.
Em 11-06-2010 14:44, David Chelimsky escreveu:
>
>
> Sent from my iPhone
>
> On Jun 11, 2010, at 1:30 PM, Rodrigo Rosenfeld Rosas
> <lbocseg at yahoo.com.br> wrote:
>
>> Now I'm getting:
>>
>> no such file to load -- action_controller/integration
>
> Backtrace, please
>>
>> Am I missing something?
>>
>> Thanks,
>>
>> Rodrigo.
>>
>> P.S.: Sorry if this was sent twice...
>>
>> Em 11-06-2010 01:10, David Chelimsky escreveu:
>>> Change the directory name to requests (a la merb)
>>>
>>> Sent from my iPhone
>>>
>>> On Jun 10, 2010, at 10:35 PM, Rodrigo Rosenfeld Rosas
>>> <lbocseg at yahoo.com.br> wrote:
>>>
>>>> Hi guys,
>>>>
>>>> I'm trying to port an application to Rails 3 but can't get my
>>>> integration tests to run.
>>>>
>>>> I can't call the Webrat's method (yields 'undefined method `visit`',
>>>> for instance). I don't use Cucumber.
>>>>
>>>> Is there any instructions about how to configure Rspec 2 with Webrat
>>>> on Rails 3?
>>>>
>>>> I also have a custom helper that is not working:
>>>>
>>>> "config.include MyApp::IntegrationHelper, :type => :integration" (the
>>>> methods defined in this module are not available in the specs)
>>>>
>>>> Any ideas?
>>>>
>>>> Thanks,
>>>>
>>>> Rodrigo.
__________________________________________________
Faça ligações para outros computadores com o novo Yahoo! Messenger
http://br.beta.messenger.yahoo.com/
More information about the rspec-users
mailing list