Sha256: 577171cd37e852a59a85d543585cf949b6e05a42f6991183df2dd4ca1f8b9ca8
Contents?: true
Size: 399 Bytes
Versions: 3
Compression:
Stored size: 399 Bytes
Contents
describe Musterb::BindingExtractor do it "can pull out local variables from the binding" do foo = "bar" extractor = Musterb::BindingExtractor.new binding, nil extractor["foo"].should eq "bar" end it "returns nil if the local variable cannot be found" do extractor = Musterb::BindingExtractor.new binding, Musterb::NullExtractor.new extractor["foo"].should be_nil end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
musterb-1.0.1 | spec/musterb/binding_extractor_spec.rb |
musterb-1.0.0 | spec/musterb/binding_extractor_spec.rb |
musterb-0.2.0 | spec/musterb/binding_extractor_spec.rb |