Hello list, One of my Cucumber features rely havily in Selenium (used through WebRat) and since I'm accessing external data-sources (a web-service) I decided the best way would be to mock this specific component and provide a fixture out of it. The mocking/stubbing is easy, I'm already familiar with that. The issue here is that, mocking/stubbing (which I do using rspec/rspec-rails) does not work when the application is running by the selenium driver. I know, I know, it is because they are in different processes and don't share the same VM space.
Someone told me in the cucumber ML to use the Mainline library ( http://github.com/gaffo/mainline/tree/master), I have set it up just like it is told in its README, putting these lines in my features/support/env.rb: Webrat.configure do |config| > config.application_framework = :external > Mainline.enable > end > When I run cucumber with "cucumber -p selenium", it runs ok, and seems to start every process it needs. However, when the browser is launched and tries to access localhost:3000, it just can't. So, I assume the mongrel server is not being started or not accessible for some reason I don't know. If someone could enlighten-me here, I would be really grateful! Thanks in advance, Marcelo.
_______________________________________________ rspec-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
