Troubleshooting Watir & Cucumber Installation


Recently I came across open source testing tools used for automating web browsers. The tools I used were Watir and Cucumber.
After running basic installation steps from respective sites, I ran into several issues. I’m just posting the work around for that problems.


Problem 1: After running rake if you see "The filename, directory name, or volume label syntax is incorrect"

Solution:
Don't install Ruby where directory name has spaces in it.
Problem 2: no such file to load spec/expectations*,* failed to load features/support/env.rb

Solution:
If you see something like this, then update/install rspec

Problem 3: uninitialized constant Windows::API::Error (NameError)

Solution:
Happens due to older version of windows-pr
gem uninstall windows-pr
gem install windows-pr