Testing Opal¶
As of version 0.7.3, Opal has included a Testing suite based on RSpec. Any time you make changes to Opal code, you should run the Opal test suite to make sure all of the bits and pieces of Opal are running properly. Here's how.
Go to your Opal Directory.
cd opal/ # go to your opal directory rake opal:reset RAILS_ENV=test
Create/Reset the Test Database
rake opal:reset RAILS_ENV=test
Run All Opal Tests!
rspec spec/
If everything went well, you should see something like this.
...................................................... Finished in 1.19 seconds 54 examples, 0 failures
Otherwise, you'll see some descriptive errors that point you to the file that is causing a problem.
