Created
October 3, 2008 05:47
-
-
Save wycats/14512 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
given "logged in" do | |
login | |
end | |
describe "/foo", :given => "logged in" do | |
end | |
# is equivalent to | |
describe "logged in", :shared => true do | |
before(:each) do | |
login | |
end | |
end | |
describe "/foo" do | |
it_should_behave_like "logged in" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment