Full filesystem path showing up in <script> tag in jasmine runner HTML.

56 views
Skip to first unread message

Grant Hutchins

unread,
Mar 8, 2013, 10:03:45 AM3/8/13
to jasmi...@googlegroups.com
We have just upgraded a large legacy application with which Rajan is intimately familiar to use the asset pipeline.

Here is what the top of the source looks like right now. (Notice that we are getting a full filesystem path for application.js)

Everything after this works correctly and loads all of our individual source files correctly through the asset pipeline, so our tests actually still pass.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type"/>
<title>Jasmine suite</title>
<link rel="shortcut icon" type="image/png" href="/__JASMINE_ROOT__/images/jasmine_favicon.png">
<link rel="stylesheet" href="/__jasmine__/jasmine.css" type="text/css" media="screen"/>
<script src="/__jasmine__/jasmine.js" type="text/javascript"></script>
<script src="/__jasmine__/jasmine-html.js" type="text/javascript"></script>
<script src="/__jasmine__/json2.js" type="text/javascript"></script>
<script src="/Users/pivotal/workspace/casebook2/app/assets/javascripts/application.js?body=true" type="text/javascript"></script>
<script src="/assets/jquery.js?body=true" type="text/javascript"></script>
<script src="/assets/jquery_ujs.js?body=true" type="text/javascript"></script>
...

Any idea what could be causing this?

Here's our jasmine.yml (with comments stripped)

$ cat spec/javascripts/support/jasmine.yml | egrep -v ^\#

src_files:
  - assets/application.js

stylesheets:
  - stylesheets/**/*.css

helpers:
  - support/helpers/**/*.js

spec_files:
  - shared/*.js
  - '**/*[sS]pec.js'

src_dir: spec/javascripts/public

spec_dir: spec/javascripts

Davis W. Frank

unread,
Mar 8, 2013, 12:23:39 PM3/8/13
to jasmi...@googlegroups.com
Are you on jasmine gem HEAD?
--dwf


--
You received this message because you are subscribed to the Google Groups "Jasmine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jasmine-js+...@googlegroups.com.
To post to this group, send email to jasmi...@googlegroups.com.
Visit this group at http://groups.google.com/group/jasmine-js?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
thx,
--dwf

Grant Hutchins

unread,
Mar 8, 2013, 1:46:18 PM3/8/13
to jasmi...@googlegroups.com
No, we'll give that a shot real quick and report back.


--
You received this message because you are subscribed to a topic in the Google Groups "Jasmine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jasmine-js/tGjwIGlvXEg/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to jasmine-js+...@googlegroups.com.

Grant Hutchins

unread,
Mar 8, 2013, 2:12:48 PM3/8/13
to jasmi...@googlegroups.com
Updating to HEAD worked great. 

We were on 1.3.1 before.

Thanks!
Reply all
Reply to author
Forward
0 new messages