How to convert ruby - Rspec to js test - opal gem

79 views Asked by At

In my Ruby on Rails app I use opal gem for converting the ruby code to JS. How can I convert also the Rspec tests to JS test - opal. And how to run those JS/opal tests?

Thank

1

There are 1 answers

0
Shir On

I use the hyper-spec gem. It required:

  • Use factory_bot gem instead of factory_girl gem.
  • Add dummy rails app to rspec folder that use my gem.
  • More configuration for the tests as describe in the readme.