15 lines
313 B
Ruby
15 lines
313 B
Ruby
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
|