Skip to content

Instantly share code, notes, and snippets.

@shkm shkm/some_spec.rb
Created Sep 12, 2014

What would you like to do?
Get text of the main describe block in RSpec. Useful for rendering views with locals.
describe 'shared/some_partial.html.erb' do
before(:all) { layout = self.class.metadata[:description] }
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.