First time experience with 1.1.0 - where is SpecRunner.html?

717 views
Skip to first unread message

Lindsey Simon

unread,
Sep 13, 2011, 8:25:32 PM9/13/11
to Jasmine
Gosh, I'm feeling really stupid.
I'm looking at the instructions and can't even get started ;0

The instructions here say (https://github.com/pivotal/jasmine/wiki/A-
simple-project): Download the standalone. Open SpecRunner.html

I just unzipped the standalone:
505 ~/src $ unzip ~/Downloads/jasmine-standalone-1.1.0.zip
Archive: /Users/elsigh/Downloads/jasmine-standalone-1.1.0.zip
creating: jasmine-standalone-1.1.0/
creating: jasmine-standalone-1.1.0/lib/
creating: jasmine-standalone-1.1.0/lib/jasmine-1.1.0/
inflating: jasmine-standalone-1.1.0/lib/jasmine-1.1.0/jasmine-
html.js
inflating: jasmine-standalone-1.1.0/lib/jasmine-1.1.0/jasmine.css
inflating: jasmine-standalone-1.1.0/lib/jasmine-1.1.0/jasmine.js
extracting: jasmine-standalone-1.1.0/lib/jasmine-1.1.0/
jasmine_favicon.png
inflating: jasmine-standalone-1.1.0/lib/jasmine-1.1.0/MIT.LICENSE

I see no SpecRunner.html file in there. :(

So I took a crack with the 1.0.2.zip (I see SpecRunner.html in there):
64 /tmp $ unzip jasmine-standalone-1.0.2.zip
Archive: jasmine-standalone-1.0.2.zip
creating: lib/
creating: lib/jasmine-1.0.2/
inflating: lib/jasmine-1.0.2/jasmine-html.js
inflating: lib/jasmine-1.0.2/jasmine.css
inflating: lib/jasmine-1.0.2/jasmine.js
inflating: lib/jasmine-1.0.2/MIT.LICENSE
creating: spec/
inflating: spec/PlayerSpec.js
inflating: spec/SpecHelper.js
inflating: SpecRunner.html
creating: src/
inflating: src/Player.js
inflating: src/Song.js

Davis Frank

unread,
Sep 14, 2011, 12:29:13 AM9/14/11
to jasmi...@googlegroups.com
Whoops. That is certainly a bug.

In the short term, you can use the SpecRunner.html file from the 1.0.2 release.

--dwf


--
You received this message because you are subscribed to the Google Groups "Jasmine" group.
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.


Lindsey Simon

unread,
Sep 16, 2011, 4:21:10 PM9/16/11
to Jasmine
Thanks Davis,
Still feeling pretty stupid here.. =)
I've verified I'm not getting 200s on the jasmine resources. But when
I load me page I get:

should work
TypeError: Object [object Object] has no method 'toBeTruty'
at [object Object].<anonymous> (http://localhost:8081/static/path/
test_jasmine.html:12:22)
at [object Object].execute (http://localhost:8081/static/external/
jasmine/jasmine.js:1001:15)
at [object Object].next_ (http://localhost:8081/static/external/
jasmine/jasmine.js:1790:31)
at [object Object].start (http://localhost:8081/static/external/
jasmine/jasmine.js:1743:8)
at [object Object].execute (http://localhost:8081/static/external/
jasmine/jasmine.js:2070:14)
at [object Object].next_ (http://localhost:8081/static/external/
jasmine/jasmine.js:1790:31)


Here's my SpecRunner.html:
<!doctype html>
<html>
<head>
<title>Jasmine Test Runner</title>
<link rel="stylesheet" href="../external/jasmine/jasmine.css">
<script src="../external/jasmine/jasmine.js"></script>
<script src="../external/jasmine/jasmine-html.js"></script>
<script>
describe("Controller", function() {
it("should work", function() {
expect(true).toBeTruty();
});
});
</script>
</head>
<body>
<script>
jasmine.getEnv().addReporter(new jasmine.TrivialReporter());
jasmine.getEnv().execute();
</script>
</body>
</html>

Davis Frank

unread,
Sep 16, 2011, 11:41:54 PM9/16/11
to jasmi...@googlegroups.com
.toBeTruthy()

--dwf
Reply all
Reply to author
Forward
0 new messages