Skip to content

Commit

Permalink
Ensuring that nested before blocks are run in the correct order
Browse files Browse the repository at this point in the history
  • Loading branch information
ymendel committed Oct 24, 2008
1 parent a07796d commit 172dd9c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/spec_bacon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,14 @@ def equal_string(x)
it "should run at the nested level" do
@c.should.equal 5
end

before do
@a = 5
end

it "should run in the right order" do
@a.should.equal 5
end
end

it "should not run from lower level" do
Expand Down

0 comments on commit 172dd9c

Please sign in to comment.