Introduction to acceptance testing
FORK THE PROJECT!
Download and set these up first.
- ruby 2.1.5
- postgres
- capybara webkit driver (you will need QT)
Webkit as js driver for cabypara
We're using postgres. Make sure it's running :) Then log in to template with this command line:
Ubuntu: sudo -u postgres psql template1
OSX: psql template1
You will now be in psql command line.
After that in the console run the development setup script - this script is already filled in with passwords, etc.
If you want to change any of the information in there you will need to change it also in database.yml later!
In the pql console run: \i <PATH_TO_PROJECT>/db/development_setup_script.sql
Exit console by typing \q
Copy database.yml.sample to database.yml:
cp config/database.yml.sample config/database.yml
Run bundle install
Then rake db:reseed
to populate development environment with example data.
Load test database with rake db:test:load
.
Seeds have a user already created for you.
[email protected]
with password 12345678
rails s
rspec spec