spec/musterb/binding_extractor_spec.rb in musterb-0.1.2 vs spec/musterb/binding_extractor_spec.rb in musterb-0.2.0
- old
+ new
@@ -1,12 +1,12 @@
describe Musterb::BindingExtractor do
it "can pull out local variables from the binding" do
foo = "bar"
- extractor = Musterb::BindingExtractor.new binding
+ 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
+ extractor = Musterb::BindingExtractor.new binding, Musterb::NullExtractor.new
extractor["foo"].should be_nil
end
end
\ No newline at end of file