lib/cucumber/chef/steps/minitest_steps.rb in cucumber-chef-2.0.7 vs lib/cucumber/chef/steps/minitest_steps.rb in cucumber-chef-2.1.0.rc.0

- old
+ new

@@ -1,10 +1,10 @@ ################################################################################ # # Author: Stephen Nelson-Smith <stephen@atalanta-systems.com> # Author: Zachary Patten <zachary@jovelabs.com> -# Copyright: Copyright (c) 2011-2012 Atalanta Systems Ltd +# Copyright: Copyright (c) 2011-2013 Atalanta Systems Ltd # License: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -18,12 +18,12 @@ # limitations under the License. # ################################################################################ When /^I enable the running of MiniTest suites for "(.*?)"$/ do |name| - $drb_test_lab.enable_minitest(name) + $test_lab.drb.enable_minitest(name) end Then /^the tests should run and pass on "(.*?)"$/ do |name| - results = $drb_test_lab.run_minitests(name) + results = $test_lab.drb.run_minitests(name) results.last.scan(/assertions.*(\d).*failures.*(\d).*errors.*(\d).*skips/).flatten.map { |v| v.to_i }.should == [0,0,0] end