Created
September 12, 2014 19:10
-
-
Save shkm/0ea8f115e7e068389ec1 to your computer and use it in GitHub Desktop.
Get text of the main describe block in RSpec. Useful for rendering views with locals.
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 'shared/some_partial.html.erb' do | |
before(:all) { layout = self.class.metadata[:description] } | |
# ... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment