Sha256: ad92dfc0d5873d5627c038a7be1f081895eb56ce1d9e1ea1c19777e32eda4bf2
Contents?: true
Size: 275 Bytes
Versions: 3
Compression:
Stored size: 275 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alf-0.9.2 | spec/unit/test_assumptions.rb |
alf-0.9.1 | spec/unit/test_assumptions.rb |
alf-0.9.0 | spec/assumptions_spec.rb |