spec/cucumber/world/pending_spec.rb in aslakhellesoy-cucumber-0.3.95 vs spec/cucumber/world/pending_spec.rb in aslakhellesoy-cucumber-0.3.96
- old
+ new
@@ -1,15 +1,15 @@
require File.dirname(__FILE__) + '/../../spec_helper'
+require 'cucumber/rb_support/rb_language'
module Cucumber
- module StepMother
describe 'Pending' do
before(:each) do
- @step_mom = Object.new
- @step_mom.extend(StepMother)
- @world = @step_mom.__send__(:new_world!)
+ l = RbSupport::RbLanguage.new(StepMother.new)
+ l.begin_scenario
+ @world = l.current_world
end
it 'should raise a Pending if no block is supplied' do
lambda {
@world.pending "TODO"
@@ -41,7 +41,6 @@
end
}.should raise_error(Pending, /TODO/)
end
end
- end
end