Implement `has_dir' condition keyword

This commit is contained in:
Thibault Jouan
2014-01-21 15:02:07 +00:00
parent 9d7af04d28
commit 0b4df20f55
7 changed files with 69 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ module Producer::Core
let(:env) { double 'env' }
subject(:dsl) { Condition::DSL.new(env, &block) }
%w[has_env has_file].each do |test|
%w[has_dir has_env has_file].each do |test|
it "has `#{test}' test defined" do
expect(dsl).to respond_to test.to_sym
end