Skip to content

Instantly share code, notes, and snippets.

@defel
Created July 6, 2010 18:05
Show Gist options
  • Save defel/465714 to your computer and use it in GitHub Desktop.
Save defel/465714 to your computer and use it in GitHub Desktop.
Scenario: Install cucumber
Given I am running Ubuntu
And I have not yet installed cucumber
When I run "apt-get install ruby ruby1.8-dev rdoc1.8 irb libxml2-dev libxslt1-dev libc6-dev-i386 libopenssl-ruby"
# We install rubygems by hand because the apt version uses strange paths
And I run "wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz"
And I run "tar xvf rubygems-1.3.5.tgz"
And I run "cd rubygems-1.3.5"
And I run "sudo ruby setup.rb"
# Add github's gem source list
And I run "gem sources -a http://gems.github.com"
And I run "sudo gem install cucumber mechanize rspec webrat"
Then I have installed cucumber
Scenario: Setup a cucumber environment for your php app
Given I have a php app that is running
And I am in the app's top level directory
When I create a "features" directory
And I create a "features/support" directory
And I create a "features/step_definitions" directory
And I put the following in "features/support/env.rb"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment