Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

README tiny edit in Usage example #29

Merged
merged 1 commit into from

2 participants

@21croissants

In the usage example, require loads from public/javascripts/ rather than public, as it is the standard Rails directory for js.

I am kind of new to js and jasmine. It took me a while - 1 pomodoro ;) -to understand that "Error: ReferenceError: ProofOfConcept is not defined"

require function does not throw an error when it can not find the js.

My edit in the README will make it easier to not to forget the /javascripts bit for newbies

@21croissants 21croissants In the usage example, require loads from public/javascripts/ rather t…
…han public, as it is the standard Rails directory for js.
e22902f
@jnicklas jnicklas merged commit 1ee911f into abepetrillo:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 13, 2011
  1. @21croissants

    In the usage example, require loads from public/javascripts/ rather t…

    21croissants authored
    …han public, as it is the standard Rails directory for js.
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.rdoc
View
4 README.rdoc
@@ -36,12 +36,12 @@ Evergreen assumes a file and directory structure, place all your javascript
code inside ./public and all spec files inside ./spec/javascripts. All spec
files should end in _spec.js. For example:
- public/widget.js
+ public/javascripts/widget.js
spec/javascripts/widget_spec.js
You can require files from the public directory inside your spec file:
- require('/widget.js')
+ require('/javascripts/widget.js')
describe('a widget', function() {
...
Something went wrong with that request. Please try again.