Jasmine Testing Example
First Time Setup
brew install git
brew install qt
Be sure to modify your shell rc file as instructed.
rvm install ruby-1.9.2-p290
rvm use ruby-1.9.2-p290
ruby -v# should report "ruby 1.9.2p290..."
Checkout the project
git clone git://github.com/christiannelson/jasmine-testing-example.git
CD into project (and switch to the right ruby version and gemset)
Say yes to trusting the .rvmrc
gem install bundler --pre
Install dependencies using bundler
Running the Tests from the Command Line
Running the Tests in the Browser
Using Guard to Run Tests Whenever Something Changes
Guard will monitor changes to the js or the tests. When a change is detected, the tests are run automatically.
Make a change to the js or tests, watch guard do its thing. It'll notify via growl if it's installed. Press enter to manually kick off a test run.