Created
July 9, 2009 14:05
-
-
Save zmoazeni/143693 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe "Some functionality" do | |
it "should do something" do | |
@variable = some_expensive_operation | |
@variable.should do_something | |
end | |
describe "in a specific context" do | |
before(:all) do | |
@variable = some_expensive_operation | |
end | |
it "should do another thing" do | |
@variable.should do_another_thing | |
end | |
end | |
def some_expensive_operation | |
p "in here" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment