Implement `file_contains' condition keyword

This commit is contained in:
Thibault Jouan
2014-01-23 16:37:19 +00:00
parent 05331d334d
commit a0482d175c
7 changed files with 100 additions and 4 deletions

View File

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