Skip to content

backend-development/rails-example-testing-for-stars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stars

a ruby on rails 5 example app to learn about testing.

clone this repository, then

bundle   

If you run into problems with capybara-webkit, see install instructions. after everything installs correctly go on:

rake db:migrate
rake db:seed
rails server

now point your browser at the homepage at http://localhost:3000/

You will be asked to

  • write unit tests for models
  • write feature tests with capibara that test non-js features
  • write feature tests with poltergeist that test js features

To run the tests

rails test