spec/cukeforker/scenarios_spec.rb in cukeforker-0.1.9 vs spec/cukeforker/scenarios_spec.rb in cukeforker-0.2.0

- old
+ new

@@ -26,14 +26,14 @@ Examples: | nothing | | 1 | ") - Cucumber::FeatureFile.stub!(:new).with("features/test1.feature").and_return(feature_1) - Cucumber::FeatureFile.stub!(:new).with("features/test2.feature").and_return(feature_2) + Cucumber::FeatureFile.stub(:new).with("features/test1.feature").and_return(feature_1) + Cucumber::FeatureFile.stub(:new).with("features/test2.feature").and_return(feature_2) - Scenarios.stub!(:feature_files).and_return(['features/test1.feature', 'features/test2.feature']) + Scenarios.stub(:feature_files).and_return(['features/test1.feature', 'features/test2.feature']) all_scenarios = Scenarios.all all_scenarios.length.should == 4 all_scenarios[0].should == "features/test1.feature:2" @@ -52,12 +52,12 @@ Given nothing happens Scenario: test scenario 2 Given nothing else happens") - Cucumber::FeatureFile.stub!(:new).with("features/test1.feature").and_return(feature_1) + Cucumber::FeatureFile.stub(:new).with("features/test1.feature").and_return(feature_1) - Scenarios.stub!(:feature_files).and_return(['features/test1.feature']) + Scenarios.stub(:feature_files).and_return(['features/test1.feature']) all_scenarios = Scenarios.by_args(%W[-t @find_me]) all_scenarios.length.should == 1 all_scenarios[0].should == "features/test1.feature:3"