bradphelan/jasminerice — Issue #28: Problem referencing code under test and utility code.
Author: woodlouse81
Created: 2011-12-28 20:55:51+00:00
State: open

.
├── app
│ ├── assets
│ │ ├── javascripts
│ │ │ └── wizard
│ │ │ ├── wizard.js.coffee
├── spec
│ ├── javascripts
│ │ └── wizard
│ │ └── wizard_object_mother_spec.js.coffee
│ │ └── wizard_spec.js.coffee

Then in the wizard_spec.js.coffee I have:

```coffeescript
#= require wizard/wizard
#= require ./wizard_object_mother_spec

describe "Wizard", ->
describe "When a wizard has only one step", ->
beforeEach ->
#@wizardName = "Wizard Name"
#@firstStep = new AlwaysCompleteAndValidStep()

@wizard = new Wizard(@wizardName, null)
...
```

The problem is the specs in wizard_spec.js.coffee can't see the classes in "wizard.js.coffee" and "wizard_object_mother_spec.js.coffee".

I'm wondering what I'm doing wrong?