spec/bacon/spec_helper.rb in clintegracon-0.6.1 vs spec/bacon/spec_helper.rb in clintegracon-0.7.0
- old
+ new
@@ -32,11 +32,15 @@
file_tree_spec_context do |c|
c.ignores '.DS_Store'
c.ignores '.gitkeep'
- c.has_special_handling_for 'CaPheSuaDa.brewed-coffee' do |path|
+ c.transform_produced /\.brewed-coffee/ do |path|
+ FileUtils.touch("#{path}.decanted")
+ end
+
+ c.preprocess 'CaPheSuaDa.brewed-coffee' do |path|
File.read(path)
end
end
describe 'Brew recipes' do
@@ -45,9 +49,14 @@
behaves_like cli_spec('coffeemaker_no_milk', '--no-milk')
end
describe 'with honey as sweetner' do
behaves_like cli_spec('coffeemaker_sweetner_honey', '--sweetner=honey')
+ end
+
+ describe 'without milk and honey as sweetner' do
+ behaves_like cli_spec('coffeemaker_no_milk_sweetner_honey', '--no-milk --sweetner=honey',
+ based_on: 'coffeemaker_sweetner_honey')
end
end
describe 'Get help' do