In my last post, I integrated modern JS into a Rails app with Browserify via Browserify-Rails gem, and getting started with writing specs in ES6 is just as easy.
1.) Set up Browserify-Rails via my last post
2.) Add teaspoon-jasmine gem to your gemfile
3.) Make sure Browserify is configured to load spec files
4.) Run “bundle install” from Rails console
5.) Run “bundle exec rails g teaspoon:install” from Rails console
6.) Import whatever class you are testing and use ES6 syntax!
7.) Run your specs in the browser at http://localhost:3000/teaspoon, or in the console via rake teaspoon