Sha256: 3ee94aa68f241d50c8c71c0178d0262d7bd0743bf1d1de9717bae561038f6d58
Contents?: true
Size: 537 Bytes
Versions: 2
Compression:
Stored size: 537 Bytes
Contents
require 'spec_helper' describe Bogus do class SampleForRbxInstanceEval < BasicObject def x 3 end end it "doesn't break #instance_eval on RBX" do result = SampleForRbxInstanceEval.new.instance_eval{x} expect(result).to eq(3) end it "does not break === with the monkey patch" do expect(SampleForRbxInstanceEval === SampleForRbxInstanceEval.new).to be(true) expect(BasicObject === SampleForRbxInstanceEval.new).to be(true) expect(Bogus === SampleForRbxInstanceEval.new).to be(false) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bogus-0.1.7 | spec/bogus/bugs/rbx_instance_eval_bug_spec.rb |
bogus-0.1.6 | spec/bogus/bugs/rbx_instance_eval_bug_spec.rb |