@@ -128,7 +128,7 @@ describe("stub", function() {
128128 it ( "returns undefined" , function ( ) {
129129 var stub = createStub . create ( ) ;
130130
131- refute . defined ( stub ( ) ) ;
131+ assert . isUndefined ( stub ( ) ) ;
132132 } ) ;
133133
134134 it ( "supersedes previous throws" , function ( ) {
@@ -794,7 +794,7 @@ describe("stub", function() {
794794
795795 assert . exception ( stub ) ;
796796
797- refute . defined ( stub . invoking ) ;
797+ assert . isUndefined ( stub . invoking ) ;
798798 } ) ;
799799 } ) ;
800800
@@ -1441,7 +1441,7 @@ describe("stub", function() {
14411441 createStub ( myObj , "ouch" ) ;
14421442 } ) ;
14431443
1444- refute . defined ( myObj . ouch ) ;
1444+ assert . isUndefined ( myObj . ouch ) ;
14451445 } ) ;
14461446 } ) ;
14471447
@@ -2504,7 +2504,7 @@ describe("stub", function() {
25042504
25052505 assert . same ( stub ( 5 ) , 1 ) ;
25062506 assert . same ( stub ( 5 ) , 2 ) ;
2507- refute . defined ( stub ( 5 ) ) ;
2507+ assert . isUndefined ( stub ( 5 ) ) ;
25082508 } ) ;
25092509
25102510 it ( "does not create undefined behaviour just by calling onCall" , function ( ) {
@@ -2525,13 +2525,13 @@ describe("stub", function() {
25252525
25262526 assert . same ( stub ( 5 ) , 1 ) ;
25272527 assert . same ( stub ( 5 ) , 2 ) ;
2528- refute . defined ( stub ( 5 ) ) ;
2528+ assert . isUndefined ( stub ( 5 ) ) ;
25292529
25302530 stub . reset ( ) ;
25312531
25322532 assert . same ( stub ( 5 ) , undefined ) ;
25332533 assert . same ( stub ( 5 ) , undefined ) ;
2534- refute . defined ( stub ( 5 ) ) ;
2534+ assert . isUndefined ( stub ( 5 ) ) ;
25352535 } ) ;
25362536
25372537 it ( "throws an understandable error when trying to use withArgs on behavior" , function ( ) {
@@ -2777,7 +2777,7 @@ describe("stub", function() {
27772777
27782778 stub . resetBehavior ( ) ;
27792779
2780- refute . defined ( stub ( ) ) ;
2780+ assert . isUndefined ( stub ( ) ) ;
27812781 } ) ;
27822782
27832783 it ( "cleans behavior of fakes returned by withArgs" , function ( ) {
@@ -2786,7 +2786,7 @@ describe("stub", function() {
27862786
27872787 stub . resetBehavior ( ) ;
27882788
2789- refute . defined ( stub ( "lolz" ) ) ;
2789+ assert . isUndefined ( stub ( "lolz" ) ) ;
27902790 } ) ;
27912791
27922792 it ( "does not clean parents' behavior when called on a fake returned by withArgs" , function ( ) {
@@ -2804,7 +2804,7 @@ describe("stub", function() {
28042804
28052805 stub . resetBehavior ( ) ;
28062806
2807- refute . defined ( stub ( "defined" ) ) ;
2807+ assert . isUndefined ( stub ( "defined" ) ) ;
28082808 } ) ;
28092809
28102810 it ( "cleans 'returnsThis' behavior" , function ( ) {
@@ -2814,7 +2814,7 @@ describe("stub", function() {
28142814
28152815 instance . stub . resetBehavior ( ) ;
28162816
2817- refute . defined ( instance . stub ( ) ) ;
2817+ assert . isUndefined ( instance . stub ( ) ) ;
28182818 } ) ;
28192819
28202820 it ( "cleans 'resolvesThis' behavior, so the stub does not resolve nor returns anything" , function ( ) {
@@ -2824,7 +2824,7 @@ describe("stub", function() {
28242824
28252825 instance . stub . resetBehavior ( ) ;
28262826
2827- refute . defined ( instance . stub ( ) ) ;
2827+ assert . isUndefined ( instance . stub ( ) ) ;
28282828 } ) ;
28292829
28302830 describe ( "does not touch properties that are reset by 'reset'" , function ( ) {
@@ -2850,10 +2850,10 @@ describe("stub", function() {
28502850 assert . equals ( stub . returnValues . length , 3 ) ;
28512851 assert . equals ( stub . exceptions . length , 3 ) ;
28522852 assert . equals ( stub . thisValues . length , 3 ) ;
2853- assert . defined ( stub . firstCall ) ;
2854- assert . defined ( stub . secondCall ) ;
2855- assert . defined ( stub . thirdCall ) ;
2856- assert . defined ( stub . lastCall ) ;
2853+ refute . isUndefined ( stub . firstCall ) ;
2854+ refute . isUndefined ( stub . secondCall ) ;
2855+ refute . isUndefined ( stub . thirdCall ) ;
2856+ refute . isUndefined ( stub . lastCall ) ;
28572857 } ) ;
28582858
28592859 it ( "call order state" , function ( ) {
0 commit comments