Permalink
Browse files

fixing spec for assembler

  • Loading branch information...
1 parent 4f76479 commit aeb26301936c5f80bff63a875363560d3b1fc402 @vantreeseba vantreeseba committed Feb 24, 2014
Showing with 5 additions and 5 deletions.
  1. +5 −5 spec/cucumber/ast/assembler_spec.js
@@ -358,12 +358,12 @@ describe("Cucumber.Ast.Assembler", function() {
scenarioOutline = createSpyWithStubs('scenario', {'buildScenarios': subScenarios});
scenarioOutline.payload_type = 'scenarioOutline';
- spyOn(assembler, 'insertBuiltScenarioAndSteps');
+ spyOn(assembler, 'insertScenario');
});
it("it should get the scenarios from the current feature", function () {
- assembler.convertScenarioOutlineToScenarios(scenarioOutline);
- expect(assembler.insertBuiltScenarioAndSteps).toHaveBeenCalledWithValueAsNthParameter(subScenario,1);
+ assembler.convertScenarioOutlineToScenarios(scenarioOutline);
+ expect(assembler.insertScenario).toHaveBeenCalledWithValueAsNthParameter(subScenario,1);
});
});
@@ -387,9 +387,9 @@ describe("Cucumber.Ast.Assembler", function() {
});
it("it should get the scenarios from the current feature", function () {
- assembler.convertScenarioOutlinesToScenarios();
+ assembler.convertScenarioOutlinesToScenarios();
expect(assembler.convertScenarioOutlineToScenarios).toHaveBeenCalledWith(scenario);
- });
+ });
});
describe("finish()", function () {

0 comments on commit aeb2630

Please sign in to comment.