Add warning to SpecRunner.html when running from non-built source.
This commit is contained in:
parent
15955df258
commit
6562b5a3b4
1
Rakefile
1
Rakefile
|
@ -22,6 +22,7 @@ task :default => 'jasmine:dist'
|
|||
def substitute_jasmine_version(filename)
|
||||
contents = File.read(filename)
|
||||
contents = contents.gsub(/##JASMINE_VERSION##/, (jasmine_version))
|
||||
contents = contents.gsub(/[^\n]*REMOVE_THIS_LINE_FROM_BUILD[^\n]*/, '')
|
||||
File.open(filename, 'w') { |f| f.write(contents) }
|
||||
end
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
|
||||
</head>
|
||||
<body>
|
||||
<div id="REMOVE_THIS_LINE_FROM_BUILD"><p>You must be trying to look at examples in the Jasmine source tree.</p><p>Please download a distribution version of Jasmine at <a href="http://pivotal.github.com/jasmine/">http://pivotal.github.com/jasmine/</a>.</p></div>
|
||||
<script type="text/javascript">
|
||||
jasmine.getEnv().addReporter(new jasmine.TrivialReporter());
|
||||
jasmine.getEnv().execute();
|
||||
|
@ -24,4 +25,3 @@
|
|||
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue