Sha256: 6e40476cf38d62cf52eca3128f89b3ff9212853c8c36e4b29e7380b01f42832d
Contents?: true
Size: 260 Bytes
Versions: 1
Compression:
Stored size: 260 Bytes
Contents
require "spec_helper" describe "Object" do it "yields the object" do obj = Object.new obj.let { |arg| expect(arg).to eq obj } end it "returns the block result" do obj = Object.new expect(obj.let {|arg| 3}).to eq 3 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
object-let-1.0.0 | spec/object_spec.rb |