Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 834 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 834 Bytes

RSpec/Capybara Sample Automation Test

Instructions

  • Install RVM from here
  • Clone this repository. This clones a '.rvmrc' along with the other required files.
git clone [email protected]:ajeya/automation_template.git
  • Run the following commands from the same directory as the rest of your code
cd automation_template
source .rvmrc
gem install bundler
bundle install
  • In 'sample.rspec.rb' update the following lines:
Capybara.app_host = "http://some.url.com"

fill_in "username", with: "some-username"
fill_in "password", with: "some-password"
  • Run the following command to check if everything is installed and runs correctly.
rspec sample.rspec.rb
  • For an up-to-date Capybara cheatsheet refer to this gist