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.
1. Setup the rails_helper.rb
2. Start testing with Poltergeist