Permalink
Browse files

added test for multiple instances

  • Loading branch information...
1 parent 4577601 commit 509c132931dbbfacf5722472cbb6a50203aae2cf @krzysztof-o committed Apr 14, 2013
Showing with 15 additions and 0 deletions.
  1. +15 −0 test/tests.js
View
@@ -48,7 +48,22 @@ describe('instance of class A', function() {
});
});
+describe('instances of class A', function() {
+ before(function() {
+ A = oop.class('./A');
+ a1 = new A();
+ a2 = new A();
+ });
+ after(function() {
+ A = null;
+ a1 = null;
+ a2 = null;
+ });
+ it('should not be equal', function() {
+ assert.notEqual(a1, a2);
+ });
+});

0 comments on commit 509c132

Please sign in to comment.