We have a rails integrated rspec test suite, with support for javascript interactions with webdriver.
bundle exec rspec
When a pull request is made Circle CI runs the test suite before pushing to the Heroku dev environment. A pull request can only be accepted if the build passes.