Sha256: b97b66872953156f364d2a6804c2ecb743f03c7b2dbac4f00755c0773f57d9a7
Contents?: true
Size: 465 Bytes
Versions: 3
Compression:
Stored size: 465 Bytes
Contents
require 'spec_helper' describe Dependor::EvaluatingInjector do it 'evaluates methods in given binding' do def baz "the method baz" end injector = Dependor::EvaluatingInjector.new(binding) injector.get(:baz).should == "the method baz" end it 'evaluates local variables in given binding' do bar = "the local bar" injector = Dependor::EvaluatingInjector.new(binding) injector.get(:bar).should == "the local bar" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dependor-1.0.1 | spec/dependor/evaluating_injector_spec.rb |
dependor-1.0.0 | spec/dependor/evaluating_injector_spec.rb |
dependor-0.0.6 | spec/dependor/evaluating_injector_spec.rb |