Created
April 18, 2010 11:21
-
-
Save joshuacronemeyer/370172 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>Graphics | JavaScript Testing Results</title> | |
<link rel="stylesheet" href="screw.css" type="text/css" charset="utf-8" /> | |
<script type="text/javascript" src="../../../vendor/plugins/blue-ridge/lib/blue-ridge.js"></script> | |
</head> | |
<body> | |
<!-- Put any HTML fixture elements here. --> | |
<div id="stuff"></div> | |
<script> | |
$(document).ready(function () { | |
$("#stuff").text("this page is ready"); | |
} | |
); | |
</script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require("spec_helper.js"); | |
Screw.Unit(function(){ | |
describe("Graphics", function(){ | |
it("does something", function(){ | |
expect($("#stuff").text()).to(equal, "this page is ready"); | |
}); | |
}); | |
}); |
Hmm. Ok. So this doesn't reproduce my issue precisely because switching to jquery 1.3.2 doesn't make this test pass... but am i missing something? shouldn't this test pass using rhino since it passes in the browser?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a fixture and test from a rails project using the latest version of blue-ridge (http://github.com/relevance/blue-ridge/commit/be33098d4d0d9acbe9f207ba2411af0f06d30575). This feature passes in firefox, but fails from the console: expected null to equal "this page is ready"
As near as I can tell, this is an env.js issue... though it seems like blue-ridge shouldn't make jquery 1.4.2 default since it isn't working properly.