1. Go to your top level directory above the 'features' directory
2. Install gem bundler from the command prompt. Gem install bundler
D:\Work\ui>gem install bundler
Temporarily enhancing PATH to include DevKit...
Successfully installed bundler-1.0.10
1 gem installed
Installing ri documentation for bundler-1.0.10...
Installing RDoc documentation for bundler-1.0.10...
D:\Work\ui>
3. Create a gemfile in your current directory
Here is what my 'gemfile' looks like
source "http://rubygems.org/"
group :test do
gem 'cucumber', '0.6.4'
gem 'rake', '0.8.7'
gem 'rspec', '1.2.8'
gem 'capybara', '0.4.0'
gem 'gizmo', '0.1.1'
gem 'win32-process', :platforms => [:mswin, :mingw]
gem 'win32console', :platforms => [:mswin, :mingw]
gem 'ruby-debug', '0.10.3' :platforms => [:ruby]
end
4. execute "bundle install --path vendor/bundle"
D:\Work\ui>bundle install --path vendor/bundle
Fetching source index for http://rubygems.org/
Using rake (0.8.7)
Using activesupport (2.3.11)
Using builder (3.0.0)
Using celerity (0.8.8)
Using culerity (0.2.15)
Using mime-types (1.16)
Using nokogiri (1.4.4.1)
Using rack (1.2.1)
Using rack-test (0.5.7)
Using ffi (0.6.3)
Using childprocess (0.1.7)
Using json_pure (1.5.1)
Using rubyzip (0.9.4)
Using selenium-webdriver (0.1.3)
Using xpath (0.1.3)
Using capybara (0.4.0)
Using diff-lcs (1.1.2)
Using polyglot (0.3.1)
Using term-ansicolor (1.0.5)
Using treetop (1.4.9)
Using cucumber (0.6.4)
Using tilt (1.2.2)
Using gizmo (0.1.1)
Using rspec (1.2.8)
Installing win32-api (1.4.8) Temporarily enhancing PATH to include DevKit...
Installing windows-api (0.4.0)
Installing windows-pr (1.1.3)
Installing win32-process (0.6.5)
Installing win32console (1.3.0)
Using bundler (1.0.10)
Your bundle is complete! It was installed into ./vendor/bundle
5. Execute 'bundle exec cucumber features\whatever.feature' files
After installing gem bundler, you would need to run it using 'bundle exec' command. This ensure that cucumber will use the local gem file that you install under the vendor/bundler directories.
No comments:
Post a Comment