Permalink
Browse files

Removing support for step_definitions without a proc being marked as …

…pending.
  • Loading branch information...
1 parent 27f1356 commit 361e2783a2367d3947654ef3cc48ac428d6ba1e4 Joseph Wilk committed Nov 14, 2008
Showing with 1 addition and 8 deletions.
  1. +1 −0 History.txt
  2. +0 −1 lib/cucumber/step_mother.rb
  3. +0 −7 spec/cucumber/step_mother_spec.rb
View
@@ -8,6 +8,7 @@ Blurb
=== Bugfixes
=== Removed features
+* Step definition without a block being treated as pending (#64 Joseph Wilk)
== 0.1.9
@@ -53,7 +53,6 @@ def register_step_proc(key, &proc)
def regexp_args_proc(step_name)
candidates = @step_procs.map do |regexp, proc|
if step_name =~ regexp
- proc = PENDING if proc.nil?
[regexp, $~.captures, proc]
end
end.compact
@@ -50,13 +50,6 @@ module Cucumber
end
end
- it "should mark a step as pending if it does not have a proc" do
- m = StepMother.new
- m.register_step_proc /I have no body/
- regexp, args, proc = m.regexp_args_proc "I have no body"
- proc.should == StepMother::PENDING
- end
-
it "should report that a step has a definition if the step is registered" do
m = StepMother.new
m.register_step_proc /I am a real step definition/ do end

0 comments on commit 361e278

Please sign in to comment.