Add Env class
This commit is contained in:
14
spec/producer/core/env_spec.rb
Normal file
14
spec/producer/core/env_spec.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
require 'spec_helper'
|
||||
|
||||
module Producer::Core
|
||||
describe Env do
|
||||
let(:recipe) { Recipe.new(Proc.new { nil }) }
|
||||
subject(:env) { Env.new(recipe) }
|
||||
|
||||
describe '#current_recipe' do
|
||||
it 'returns the assigned current recipe' do
|
||||
expect(env.current_recipe).to eq recipe
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user