cucumber-wordpress icon indicating copy to clipboard operation
cucumber-wordpress copied to clipboard

unable to execute sample feature

Open alecnmk opened this issue 14 years ago • 3 comments

I am trying to execute basic feature you've provided with your gem. I've experienced issues like: * need to explicitly require 'fileutils', 'uri' * need to specify dependency on 'mechanize' gem But main issue is that I got following failure message while executing sample feature:

Feature: WordPress example WordPress should be as easy to test as Rails.

Background: # features/wordpress.feature:4 Given WordPress is installed # ss-1.2.0/lib/cucumber-wordpress/steps.rb:1 bad URI(is not URI?): http://localhost/ (URI::InvalidURIError)

I'm not sure that I'm correct, but the URI got joined at cucumber-wordpress.rb:115 does already contain '/' (slash) at the end, and also all "when"s in case statement are beginning with '/'.

Is there any other explanation?

alecnmk avatar Aug 22 '10 17:08 alecnmk

Seems like it's Ruby problem. I'll comment out if I resolve it somehow

alecnmk avatar Aug 22 '10 18:08 alecnmk

I've pushed a new commit, which should hopefully fix all your problems. (Hopefully). Also, an update to the README. Please let me know if it worked. And thanks for taking the time to report these problems.

holizz avatar Aug 23 '10 09:08 holizz

@holizz, I've switched to plain cucumber + capybara for testing. Let me know if you want me to help you with verification of this issue.

alecnmk avatar Aug 23 '10 11:08 alecnmk