Skip to content

Commit

Permalink
added numberformatter spec
Browse files Browse the repository at this point in the history
 - this spec fails in the browser, but exits silently at the console
  • Loading branch information
stuarthalloway committed May 21, 2009
1 parent 58e36d3 commit b4018a7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/javascript/fixtures/numberformatter.html
@@ -0,0 +1,13 @@
<!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>Numberformatter | 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. -->
</body>
</html>
11 changes: 11 additions & 0 deletions test/javascript/numberformatter_spec.js
@@ -0,0 +1,11 @@
require("spec_helper.js");
require("../../public/javascripts/jquery-1.3.2.js");
require("../../public/javascripts/jquery.numberformatter-1.1.2.js");

Screw.Unit(function(){
describe("formatNumber", function(){
it("defaults to us #,###.00", function(){
expect(formatNumber(1999).to(equal, "boom"));
});
});
});

0 comments on commit b4018a7

Please sign in to comment.