Allow access to registry from conditions

This commit is contained in:
Thibault Jouan
2014-09-25 00:01:03 +00:00
parent d335abce57
commit 77582ef843
4 changed files with 23 additions and 0 deletions

View File

@@ -173,5 +173,14 @@ module Producer::Core
end
end
end
describe '#get' do
let(:env) { Env.new }
it 'delegates to env registry' do
expect(env).to receive(:get).with :some_key
described_class.evaluate(env, []) { get :some_key }
end
end
end
end