Skip to content

Instantly share code, notes, and snippets.

@xmjw
Created February 11, 2015 11:09
Show Gist options
  • Save xmjw/99d8ae0436eb7eb55d4b to your computer and use it in GitHub Desktop.
Save xmjw/99d8ae0436eb7eb55d4b to your computer and use it in GitHub Desktop.
RSpec Segfault
class MyThing
end
RSpec.shared_examples 'a thing that causes a segfault' do
it 'segfaults' do
expect(true).to eq(true)
end
end
RSpec.describe MyThing do
def app
MyThing
end
it_behaves_like 'a thing that causes a segfault' do
let(:app) { app }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment