File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ describe('MathProblem', function(){
177
177
var subject, createRandomProblem, savesProblem;
178
178
beforeEach (function (){
179
179
createRandomProblem = td .function (' createRandomProblem' )
180
- savesProblem = td .object (SavesProblem)
180
+ savesProblem = td .object (new SavesProblem () )
181
181
subject = new MathProblem (createRandomProblem, savesProblem)
182
182
})
183
183
it (' POSTs a random problem' , function (){
@@ -188,7 +188,7 @@ describe('MathProblem', function(){
188
188
189
189
As you can see above, we used a different method to create this test double!
190
190
Because our second dependency is an instantiable type, we used
191
- ` td.object([constructor function ]) ` to create a test double for it. This test
191
+ ` td.object([instance object ]) ` to create a test double for it. This test
192
192
double function is smart enough to hunt for any methods defined on the function's
193
193
prototype, and therefore will return an object that has a test double function
194
194
defined as the property ` save ` .
You can’t perform that action at this time.
0 commit comments