Sha256: 98c88faa618cba8a29912e36a6d65de36b94c64d2bf8b0bd4e3b74fecc3777e0

Contents?: true

Size: 366 Bytes

Versions: 10

Compression:

Stored size: 366 Bytes

Contents

describe Musterb::BindingExtractor do
  it "can pull out local variables from the binding" do
    foo = "bar"
    extractor = Musterb::BindingExtractor.new binding
    extractor["foo"].should eq "bar"
  end

  it "returns nil if the local variable cannot be found" do
    extractor = Musterb::BindingExtractor.new binding
    extractor["foo"].should be_nil
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
musterb-0.1.2 spec/musterb/binding_extractor_spec.rb
musterb-0.1.1 spec/musterb/binding_extractor_spec.rb
musterb-0.1.0 spec/musterb/binding_extractor_spec.rb
musterb-0.0.7 spec/musterb/binding_extractor_spec.rb
musterb-0.0.6 spec/musterb/binding_extractor_spec.rb
musterb-0.0.5 spec/musterb/binding_extractor_spec.rb
musterb-0.0.4 spec/musterb/binding_extractor_spec.rb
musterb-0.0.3 spec/musterb/binding_extractor_spec.rb
musterb-0.0.2 spec/musterb/binding_extractor_spec.rb
musterb-0.0.1 spec/musterb/binding_extractor_spec.rb