forked from foobarfighter/foounit
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bob Remeika
committed
Jun 20, 2011
1 parent
a8913e9
commit c6a43b6
Showing
8 changed files
with
44 additions
and
7 deletions.
There are no files selected for viewing
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
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
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
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
foounit.require(':spec/spec-helper'); | ||
|
||
// Include your source file here | ||
// foounit.load(':src/example.js'); // loads a file in global scope | ||
// foounit.require(':src/example.js'); // loads a file in functional scope | ||
|
||
describe('this is a group', function (){ | ||
var foo; | ||
|
||
before(function (){ | ||
foo = { bar: 123 }; | ||
}); | ||
|
||
it('fails', function (){ | ||
expect(foo.baz).toNot(beFalsy); | ||
}); | ||
|
||
it('passes', function (){ | ||
expect(foo.bar).to(be, 123); | ||
}); | ||
}); |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
foounit.globalize(); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,14 @@ | ||
test | ||
(function (foounit){ | ||
|
||
// Set __dirname if it doesn't exist (like in the browser) | ||
__dirname = typeof __dirname !== 'undefined' ? | ||
__dirname : foounit.browser.dirname(/suite.js$/); | ||
|
||
// Change this to be a reference to your primary source directory | ||
foounit.mount('src', __dirname + '/../src'); | ||
foounit.mount('spec', __dirname); | ||
|
||
foounit.browser.setLoaderStrategy(new foounit.browser.XhrLoaderStrategy()); | ||
foounit.getSuite().addFile('example_spec'); | ||
foounit.getSuite().run(); | ||
})(foounit); |