Installation
Add gem 'hyper-spec'
to your Gemfile in the usual way.
Typically in a Rails app you will add this in the test section of your Gemfile:
Make sure to bundle install
.
HyperSpec is integrated with the pry
gem for debugging, so it is recommended to add the pry
gem as well.
HyperSpec will also use the timecop
gem if present to allow you to control and synchronize time on the server and the client.
A typical spec_helper file when using HyperSpec will look like this:
To load the webdriver and client environment your spec should have the :js
flag set:
Last updated