This PR sets up JavaScript testing integrated with Rails, using the teaspoon and teaspoon-mocha gems. If you're running bundle exec rails s, you can go to localhost:3000/teaspoon to see the JavaScript test report.
Tests use mocha/chai, and are located in spec/javascript, although the matcher will also look for files suffixed with _spec and _test in the app/assets and app/javascript folders if you prefer co-locating tests with code.
Tests are running with Selenium Chromedriver using headless option.
Type of change
New feature (non-breaking change which adds functionality)
Resolves #21
Description
This PR sets up JavaScript testing integrated with Rails, using the
teaspoon
andteaspoon-mocha
gems. If you're runningbundle exec rails s
, you can go tolocalhost:3000/teaspoon
to see the JavaScript test report.Tests use mocha/chai, and are located in
spec/javascript
, although the matcher will also look for files suffixed with_spec
and_test
in theapp/assets
andapp/javascript
folders if you prefer co-locating tests with code.Tests are running with Selenium Chromedriver using headless option.
Type of change
How Has This Been Tested?
Ran some tests!!!