Skip to content

Instantly share code, notes, and snippets.

@chalkers
Created June 21, 2010 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chalkers/447068 to your computer and use it in GitHub Desktop.
Save chalkers/447068 to your computer and use it in GitHub Desktop.
rails testing_deployed_app
cd testing_deployed_app
ruby script/generate cucumber --rspec --capybara
#In features/support/env.rb add
Capybara.current_driver = :selenium
Capybara.app_host = 'http://news.bbc.o.uk'
rake db:migrate
sudo gem install capybara
sudo gem install database_cleaner
sudo gem install rspec-rails
#Then
rake cucumber
#0 scenarios
#0 steps
#0m0.000s
#Add the following feature into your features directory
Feature: Navigation
In order to find related news stories
As a user
I want to be able to find things I want to know about
Scenario: Technologist
Given go to the homepage
When I follow "Technology"
Then I should see "Nintendo expresses currency fears"
And I should not see "UK Afghan death toll reaches 300"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment