Skip to content

igorpreston/how-do-i-qa

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How do I QA?

Introduction to acceptance testing

FORK THE PROJECT!

Dependencies

Download and set these up first.

  • ruby 2.1.5
  • postgres

Gem dependencies

Database setup

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.

Credentials

Seeds have a user already created for you.
admin@example.com with password 12345678

Run

rails s

Run specs (if any)

rspec spec

About

Introduction to acceptance tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 71.5%
  • HTML 27.9%
  • Other 0.6%