0
<script src="../lib/screw.builder.js"></script>
0
<script src="../lib/screw.events.js"></script>
0
<script src="../lib/screw.behaviors.js"></script>
0
-
<link rel="stylesheet" href="../lib/screw.css">
0
+
<script src="../lib/screw.assets.js"></script>
0
<script type="text/javascript">
0
- Screw.Unit(function() {
0
- describe('Screw.Unit', function() {
0
- describe("Matchers", function() {
0
- it("invokes the provided matcher on a call to expect", function() {
0
- expect(true).to(equal, true);
0
- expect(true).to_not(equal, false);
0
- it("equal matches Arrays with the same elements", function() {
0
- expect([1, 2, 4]).to(equal, [1, 2, 3]);
0
- expect([1, 2, 3]).to_not(equal, [3, 2, 1]);
0
- describe('#run', function() {
0
- describe("A describe with a before block", function() {
0
- var before_invoked = false;
0
- before_invoked = true;
0
- it("invokes the before prior to an it", function() {
0
- expect(before_invoked).to(equal, true);
0
- before_invoked = false;
0
- it("invokes the before prior to each it", function() {
0
- expect(before_invoked).to(equal, true);
0
- describe("A describe with two before blocks", function() {
0
- invocations.push('before 1');
0
- invocations.push('before 2');
0
- it("invokes the befores in lexical order prior to each it", function() {
0
- expect(invocations).to(equal, ['before 1', 'before 2']);
0
- describe("A describe with a nested describe", function() {
0
- invocations.push("outermost before");
0
- it("after a nested describe, does not invoke any of its befores", function() {
0
- expect(invocations).to(equal, ["outermost before"]);
0
- describe("a nested describe", function() {
0
- invocations.push("inner before");
0
- describe("a doubly nested describe", function() {
0
- invocations.push('innermost before');
0
- it("runs befores in all ancestors prior to an it", function() {
0
- expect(invocations).to(equal, ["outermost before", "inner before", "innermost before"]);
0
- it("runs befores in all ancestors prior to each it", function() {
0
- expect(invocations).to(equal, ["outermost before", "inner before", "innermost before"]);
0
- it("runs a before in the parent describe before each it", function() {
0
- expect(invocations).to(equal, ["outermost before", "inner before"]);
0
- describe("#selector", function() {
0
- describe('a describe', function() {
0
- it('returns a css selector that uniquely locates the describe', function() {
0
- $('.describe').each(function() {
0
- expect($($(this).fn('selector')).get(0)).to(equal, $(this).get(0))
0
- describe('an it', function() {
0
- it('returns a css selector that uniquely locates the it', function() {
0
- $('.it').each(function() {
0
- expect($($(this).fn('selector')).get(0)).to(equal, $(this).get(0))
0
+ stylesheet("../lib/screw");
0
+ require("screwunit_spec");
Comments
No one has commented yet.