-
-
Save axsuul/c63e0727648f4bec0f95676e1e3523cc 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
# in helper | |
def with_custom_context | |
context("when in custom context") do | |
before do | |
@custom_context = true | |
end | |
yield | |
end | |
end | |
# in spec | |
with_custom_context do | |
it "passes test" do | |
expect(@custom_context).to eq true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment