Using Jasmine-JQuery to BDD a simple thermostat
The server.rb file can be used to serve the single page app:
ruby server.rb
open http://localhost:9292/index.html # app
open http://localhost:9292/SpecRunner.html # tests
Or if you would like to run in chrome from the file system without cross site scripting issues:
-
Shut down any existing running instances of Google Chrome
-
Run the following commands (from the project root) in sequence
open -a Google\ Chrome --args --disable-web-security
open index.html # app
open SpecRunner.html # tests
Or if you are in a hurry here's a single line to get the tests running:
open -a Google\ Chrome --args --disable-web-security `pwd`/SpecRunner.html