Sha256: 648dbe967e4b2928b614b280e232f5ffbaec78465f561f907e6a72a7dd0d1bdb
Contents?: true
Size: 274 Bytes
Versions: 12
Compression:
Stored size: 274 Bytes
Contents
require 'spec_helper' describe :instance_eval do let(:bar){ lambda{10} } let(:foo) { Object.new } if RUBY_VERSION <= "1.9" subject{ foo.instance_eval(&bar) } it { should == 10 } else subject{ foo.instance_exec(&bar) } it { should == 10 } end end
Version data entries
12 entries across 12 versions & 2 rubygems