spec/cucumber/step_definition_spec.rb in aslakhellesoy-cucumber-0.1.99.15 vs spec/cucumber/step_definition_spec.rb in aslakhellesoy-cucumber-0.1.99.17
- old
+ new
@@ -44,19 +44,19 @@
step = mock('Step')
step.should_receive(:exception=)
lambda do
@world.__cucumber_current_step = step
step_definition('Outside').execute(nil, @world)
- end.should raise_error(StepMother::Undefined, 'Undefined step: "Inside"')
+ end.should raise_error(Undefined, 'Undefined step: "Inside"')
end
it "should allow forced pending" do
Given /Outside/ do
pending("Do me!")
end
lambda do
step_definition("Outside").execute(nil, @world)
- end.should raise_error(StepMother::Pending, "Do me!")
+ end.should raise_error(Pending, "Do me!")
end
end
end