Permalink
Browse files

Add example spec file

  • Loading branch information...
1 parent 5a76e7d commit fd1089225619ae441a732b59c55b02aa5335cc8c @jwhitley committed Apr 26, 2012
Showing with 13 additions and 0 deletions.
  1. +6 −0 README.md
  2. +7 −0 spec/javascripts/spec/truth.coffee
View
6 README.md
@@ -91,3 +91,9 @@ spec/javascripts/support/run.html.erb
spec/javascripts/support/jasmine.yml
```
+### Add specs
+
+Create your specs in `spec/javascripts/spec`. Check out the example spec file
+in that directory. To run it, start the jasmine server via the usual `rake
+jasmine` and navigate to `http://localhost:8888/`.
+
View
7 spec/javascripts/spec/truth.coffee
@@ -0,0 +1,7 @@
+define (require) ->
+ # An example of the CommonJS style use of require:
+ # PlaylistModel = require('models/playlist_model')
+
+ describe 'truth', ->
+ it 'should be true', ->
+ expect(1 == 1).toBeTruthy()

0 comments on commit fd10892

Please sign in to comment.