Source files not loading

125 views
Skip to first unread message

Jonathan Niesen

unread,
May 19, 2012, 3:36:19 PM5/19/12
to jasmi...@googlegroups.com
I'm pretty new to Jasmine.

I have a Sinatra app and Jasmine in my gemfile. After initializig Jasmine, it loads some example specs and source files. The source files for these specs get loaded and the specs pass normally. By default the sources are located in /public/javascripts/*.js. When I put one of my own source files in the /public/javascripts directory and write a spec for it. The spec runs, but my source doesn't get loaded.

It feels like I may be missing something really basic, but I'm not seeing it.

My directory structure is:
/
/public/
/public/javascripts/MySource.js
/spec/
/spec/javascripts/MySourceSpec.js

Anyone know what I might be missing?


Davis W. Frank

unread,
May 19, 2012, 6:29:35 PM5/19/12
to jasmi...@googlegroups.com
have you init'd the project? And if so, what's in your jasmine.yml?

--dwf



--
You received this message because you are subscribed to the Google Groups "Jasmine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/jasmine-js/-/g0U-SVHcev0J.
To post to this group, send email to jasmi...@googlegroups.com.
To unsubscribe from this group, send email to jasmine-js+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jasmine-js?hl=en.



--
thx,
--dwf

Jonathan Niesen

unread,
May 20, 2012, 11:47:46 AM5/20/12
to jasmi...@googlegroups.com
I have. 

Here's what I have for src_files:

 13 src_files:                                                                                                                                                                                                             
 14   - public/javascripts/*.js

spec_files and src_dir are still defaulting to blank.

I actually go it to run, but it stopped again when trying to make the test pass. Does Jasmine not load source files that have errors in them?

On Saturday, May 19, 2012 6:29:35 PM UTC-4, Davis W. Frank wrote:
have you init'd the project? And if so, what's in your jasmine.yml?

--dwf

On Sat, May 19, 2012 at 12:36 PM, Jonathan Niesen <jon.n...@gmail.com> wrote:
I'm pretty new to Jasmine.

I have a Sinatra app and Jasmine in my gemfile. After initializig Jasmine, it loads some example specs and source files. The source files for these specs get loaded and the specs pass normally. By default the sources are located in /public/javascripts/*.js. When I put one of my own source files in the /public/javascripts directory and write a spec for it. The spec runs, but my source doesn't get loaded.

It feels like I may be missing something really basic, but I'm not seeing it.

My directory structure is:
/
/public/
/public/javascripts/MySource.js
/spec/
/spec/javascripts/MySourceSpec.js

Anyone know what I might be missing?


--
You received this message because you are subscribed to the Google Groups "Jasmine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/jasmine-js/-/g0U-SVHcev0J.
To post to this group, send email to jasmi...@googlegroups.com.
To unsubscribe from this group, send email to jasmine-js+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/jasmine-js?hl=en.



--
thx,
--dwf

Derick Bailey

unread,
May 20, 2012, 11:50:28 AM5/20/12
to jasmi...@googlegroups.com

if there is a syntax error in the file, it will load but not be runnable. keep your browser's Javascript console open to check for syntax errors.

  -Derick

To view this discussion on the web visit https://groups.google.com/d/msg/jasmine-js/-/3k3oQ-awxNcJ.

To post to this group, send email to jasmi...@googlegroups.com.
To unsubscribe from this group, send email to jasmine-js+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages