Sha256: 53d861931ceba2cb6a0af4160b329f4ecb3887dac85fb3598d867978acd887c7
Contents?: true
Size: 418 Bytes
Versions: 52
Compression:
Stored size: 418 Bytes
Contents
require File.expand_path('../../../spec_helper', __FILE__) ruby_version_is "1.9" do describe "BasicObject#instance_eval" do it "is a public instance method" do BasicObject.should have_public_instance_method(:instance_eval) end it "sets self to the receiver in the context of the passed block" do a = BasicObject.new a.instance_eval { self }.equal?(a).should be_true end end end
Version data entries
52 entries across 52 versions & 2 rubygems