Permalink
Browse files

Removed this keyword, as it was causing a test failure. Added coffee …

…option to scripts/specs bash test runner
  • Loading branch information...
Matthew Smith
Matthew Smith committed Apr 3, 2012
1 parent cd08458 commit 82d6a5c8369671bfe8517d5f43a4b9d93c75f868
Showing with 11 additions and 4 deletions.
  1. +10 −3 scripts/specs
  2. +1 −1 spec/async-callback_spec.js
View
@@ -11,15 +11,22 @@ else
command=$entry"spec"
echo $command
time $command #/nested/uber-nested
- echo -e "\033[1;35m--- Should have 39 tests and 71 assertions and 1 Failure. ---\033[0m"
+ echo -e "\033[1;35m--- Should have 40 tests and 71 assertions and 1 Failure. ---\033[0m"
echo ""
- echo "Running all tests located in the spec directory with requirejs"
+ echo "Running all tests located in the spec directory with coffee option"
+ command=$entry"--coffee spec"
+ echo $command
+ time $command #/nested/uber-nested
+ echo -e "\033[1;35m--- Should have 40 tests and 71 assertions and 1 Failure. ---\033[0m"
+ echo ""
+
+ echo "Running all tests located in the spec directory with requirejs option"
#command=$entry"--nohelpers --runWithRequireJs spec-requirejs"
command=$entry"--runWithRequireJs spec"
echo $command
time $command
- echo -e "\033[1;35m--- Should have 39 tests and 71 assertions and 1 Failure. ---\033[0m"
+ echo -e "\033[1;35m--- Should have 40 tests and 71 assertions and 1 Failure. ---\033[0m"
echo "Running all tests located in the spec-requirejs directory with requirejs"
#command=$entry"--nohelpers --runWithRequireJs spec-requirejs"
@@ -28,7 +28,7 @@ describe('async-callback', function() {
it("should accept timeout for individual spec", function() {
env.describe("it", function() {
env.it("doesn't wait", function(done) {
- this.expect(1+2).toEqual(3);
+ expect(1+2).toEqual(3);
}, 250);
});

0 comments on commit 82d6a5c

Please sign in to comment.