Skip to content

Commit

Permalink
Nothing to fix. [#293 state:resolved]
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Apr 20, 2009
1 parent b23070b commit d9de85f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion History.txt
@@ -1,7 +1,8 @@
== 0.3.x (In Git)
* New translation for Hungarian (#287 Bence Golda)

=== New features
* New translation for Hungarian (#287 Bence Golda)

=== Bugfixes
* Exceptions from steps called within hooks are now reraised. (#294 Ben Mabey)

Expand Down
12 changes: 9 additions & 3 deletions spec/cucumber/step_mother_spec.rb
Expand Up @@ -86,6 +86,12 @@ module Cucumber
end.should raise_error(Redundant)
end

# http://railsforum.com/viewtopic.php?pid=93881
it "should not raise Redundant unless it's really redundant" do
@step_mother.Given(/^(.*) (.*) user named '(.*)'$/) {|a,b,c|}
@step_mother.Given(/^there is no (.*) user named '(.*)'$/) {|a,b|}
end

it "should raise an error if the world is nil" do
@step_mother.World do
end
Expand All @@ -95,7 +101,7 @@ module Cucumber
raise "Should fail"
rescue NilWorld => e
e.message.should == "World procs should never return nil"
e.backtrace.should == ["spec/cucumber/step_mother_spec.rb:90:in `World'"]
e.backtrace.should == ["spec/cucumber/step_mother_spec.rb:96:in `World'"]
end
end

Expand Down Expand Up @@ -126,8 +132,8 @@ class << w
end.should raise_error(MultipleWorld, %{You can only pass a proc to #World once, but it's happening
in 2 places:
spec/cucumber/step_mother_spec.rb:123:in `World'
spec/cucumber/step_mother_spec.rb:125:in `World'
spec/cucumber/step_mother_spec.rb:129:in `World'
spec/cucumber/step_mother_spec.rb:131:in `World'
Use Ruby modules instead to extend your worlds. See the Cucumber::StepMother#World RDoc
or http://wiki.github.com/aslakhellesoy/cucumber/a-whole-new-world.
Expand Down

0 comments on commit d9de85f

Please sign in to comment.