cucumber-wordpress
cucumber-wordpress copied to clipboard
unable to execute sample feature
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?
Seems like it's Ruby problem. I'll comment out if I resolve it somehow
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, I've switched to plain cucumber + capybara for testing. Let me know if you want me to help you with verification of this issue.