Feature test with rspec + capybara + poltergeist


Behaviour driven test is important in agile development. Sometimes, we may face issue when development new function and it crashes the previous built function. It is dangerous if it’s test manually by human and it’ll take up quite a lot of time when repeating the test manually. Thanks to rspec test in rails, we can automate the testing process. 

Sometimes we would like to automate our test with javascript instead of only testing only the controller and model. Poltergeist will do the job for us, as it can run the test with javascript.


Project Setup
1. Setup the rails_helper.rb

2. Start testing with Poltergeist

Contact us about our engineering and design services

Let's Talk

Contact Us