Skip to content

Instantly share code, notes, and snippets.

@Ragmaanir
Created February 25, 2012 00:04
Show Gist options
  • Save Ragmaanir/1904749 to your computer and use it in GitHub Desktop.
Save Ragmaanir/1904749 to your computer and use it in GitHub Desktop.
rspec core issue: shared context and its
describe 'shared context and its' do
shared_context :shared => :ctx do
before{ puts 'before';raise if @x; @x = true }
end
describe 'failing', :shared => :ctx do
its(:length){}
it(:ok){}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment