Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 816 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 816 Bytes

Thermostat BDD

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:

  1. Shut down any existing running instances of Google Chrome

  2. 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