Skip to content

Instantly share code, notes, and snippets.

@jfredett
Created November 9, 2012 02:51
Show Gist options
  • Save jfredett/4043418 to your computer and use it in GitHub Desktop.
Save jfredett/4043418 to your computer and use it in GitHub Desktop.
Replicate RBX Crash
#requires rspec gem to be available, that's it.
require 'rspec'
class FailingClass
def self.create
new
end
end
FailingClass.private_class_method :new, :allocate
describe "rbxcrash" do
it 'these must be in separate tests -- this one first' do
FailingClass.stub(:new)
end
it 'these must be in separate tests -- this one second' do
FailingClass.create
end
end
@niksaLP
Copy link

niksaLP commented Sep 28, 2018

the hack is cool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment