Permalink
Browse files

added numberformatter spec

 - this spec fails in the browser, but exits silently at the console
  • Loading branch information...
1 parent 58e36d3 commit b4018a7f2e7e7dbde10abefd6c91632149736690 @stuarthalloway committed May 21, 2009
Showing with 24 additions and 0 deletions.
  1. +13 −0 test/javascript/fixtures/numberformatter.html
  2. +11 −0 test/javascript/numberformatter_spec.js
@@ -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>
@@ -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.