#17 √ resolved
Tammer Saleh

teardowns only work when defined before should statements

Reported by Tammer Saleh | February 15th, 2008 @ 03:37 PM

  context "a context" do
    should "call teardown" do
      blah
    end

    teardown { puts "hi there" }
  end

Does not work, but...

  context "a context" do
    teardown { puts "hi there" }

    should "call teardown" do
      blah
    end
  end

Does.

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket