Sha256: c67a385cf41faefc0ede81549e81f2cb7820a1754cb2bcf8c2539ce24c22f424

Contents?: true

Size: 202 Bytes

Versions: 11

Compression:

Stored size: 202 Bytes

Contents

describe "Kernel" do
  describe "class_eval" do
    it "should delegate to singleton class" do
      o = Object.new
      class << o; @x = 1; end
      o.class_eval { @x }.should == 1
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
motion-support-1.2.1 spec/motion-support/core_ext/kernel/singleton_class_spec.rb
motion-support-1.1.1 spec/motion-support/core_ext/kernel/singleton_class_spec.rb
motion-support-1.2.0 spec/motion-support/core_ext/kernel/singleton_class_spec.rb
motion-support-1.1.0 spec/motion-support/core_ext/kernel/singleton_class_spec.rb
motion-support-1.0.0 spec/motion-support/core_ext/kernel/singleton_class_spec.rb
motion-support-0.3.0 spec/motion-support/core_ext/kernel/singleton_class_spec.rb
motion_blender-support-0.2.8 spec/motion-support/core_ext/kernel/singleton_class_spec.rb
motion_blender-support-0.2.7 spec/motion-support/core_ext/kernel/singleton_class_spec.rb
motion-support-0.2.6 spec/motion-support/core_ext/kernel/singleton_class_spec.rb
motion-support-0.2.5 spec/motion-support/core_ext/kernel/singleton_class_spec.rb
motion-support-0.2.4 spec/motion-support/core_ext/kernel/singleton_class_spec.rb