Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error running specs - specs is not defined #28

Closed
semanticart opened this issue May 25, 2012 · 6 comments
Closed

error running specs - specs is not defined #28

semanticart opened this issue May 25, 2012 · 6 comments

Comments

@semanticart
Copy link

On a fresh install of spine.app, I create a new app, cd into the directory and run npm install and then hem server

When I visit http://localhost:9294/test the following line

    for(var key in specs.modules) specs(key);

throws the error Uncaught ReferenceError: specs is not defined

The documentation around testing seems to be lacking, am I doing this wrong? I'd love to improve the docs if I can get it running.

Thanks

@semanticart
Copy link
Author

ah, i missed a param on the npm install. my fault.

@marioizquierdo
Copy link

I have the same issue. May I know what param did you miss in the npm install?
Thanks

@semanticart
Copy link
Author

If i recall correctly it was

$ cd my_app
$ npm install .

But there's only a few npm commands so try the others if that doesn't cover it :)

@marioizquierdo
Copy link

I did npm install ., of course.
I think my problem may be other.

I have hem 0.1.9, that uses an "unknown" version of Stich (I can not see the Stich version in the generated application.js code).

I run hem server, then I go to http://localhost:9294/test and I see two errors:

GET http://localhost:9294/test/specs.js 404 (Not Found)

and

Uncaught ReferenceError: specs is not defined

It looks like this version of Stich does not get spec.modules from the spec folder.
What should I do?

@amk221
Copy link

amk221 commented Oct 16, 2012

@marioizquierdo Same problem. I'm using Spine mobile if that makes a difference. Did you get anywhere in the end?

@marioizquierdo
Copy link

@amk221 I'm using Spine mobile as well.
I ended up writing specs with plain Jasmine, in javascript. But this is driving to a less test-driven development, honestly the test coverage in my project is bad, but is a small project anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants