Running tests with Teaspoon
If you’ve gone through the Getting started tutorial, this article will show you how to run your tests using Teaspoon.
jstest has a reporter
plugin that will autodetect if you’re using Teaspoon and wire
everything up for you. To get started, add
teaspoon to your
# Gemfile gem 'teaspoon'
Then run the following commands to install Teaspoon in your app:
$ bundle update teaspoon $ rails generate teaspoon:install
Let’s copy the example files from Getting started into this project.
set.js into the test page, add this to
Then boot your Rails app and open
http://localhost:3000/teaspoon. You should
see this page:
Clicking the link to
set_spec.js should run that test and show you the