Skip to content

Commit

Permalink
Works in the browser
Browse files Browse the repository at this point in the history
DOESN'T work on the command line
  • Loading branch information
Evan Light committed Jun 30, 2011
1 parent 047f595 commit 0697468
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions spec/javascripts/hello_world_fuck_you_spec.js
Expand Up @@ -2,9 +2,10 @@

describe('hello_world', function() {
it("should tell us 'fuck you' when you click the h1", function() {
template("hello_world.jasmine_fixture");
expect($('#test h1').text()).toNotContain("Fuck You");
//$("h1").click();
// expect($('#test h1').text()).toContain("Fuck You");
spec.loadFixture("hello_world");
expect($('h1').text()).toNotContain("Fuck you");
$("h1").click();
console.log($("h1").text());
expect($('h1').text()).toContain("Fuck you");
});
});
2 changes: 1 addition & 1 deletion spec/javascripts/helpers/jasmine-fixture-loader.js
Expand Up @@ -43,7 +43,7 @@ spec.fixtureHtml = function(fixtureName) {
spec.retrieveFixture = function(fixtureName) {

// construct a path to the fixture, including a cache-busting timestamp
var path = '/tmp/jasmine_fixtures/' + fixtureName + ".jasmine_fixture?" + new Date().getTime();
var path = 'tmp/jasmine_fixtures/' + fixtureName + ".jasmine_fixture?" + new Date().getTime();
var xhr;

// retrieve the fixture markup via xhr request to jasmine server
Expand Down
2 changes: 1 addition & 1 deletion spec/javascripts/support/jasmine.yml
Expand Up @@ -11,7 +11,7 @@
# - dist/**/*.js
#
src_files:
- public/javascripts/prototype.js
- public/javascripts/jquery.js
- public/javascripts/effects.js
- public/javascripts/controls.js
- public/javascripts/dragdrop.js
Expand Down

0 comments on commit 0697468

Please sign in to comment.