- Install RVM from here
- Clone this repository. This clones a '.rvmrc' along with the other required files.
git clone git@github.com: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