From 3ef11f3add26c766745470e9b6e7bcd39ac2ebf7 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Sat, 14 Jan 2012 12:21:35 -0800 Subject: [PATCH] more ignore variation tests --- middleman-core/features/ignore.feature | 49 +++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/middleman-core/features/ignore.feature b/middleman-core/features/ignore.feature index ecdd0cff..e973c46f 100644 --- a/middleman-core/features/ignore.feature +++ b/middleman-core/features/ignore.feature @@ -33,7 +33,7 @@ Feature: Ignoring paths | build/images/pic.png | | build/images/icons/messages.png | - Scenario: Ignore with directory indexes + Scenario: Ignore with directory indexes (source file) Given a fixture app "ignore-app" And a file named "config.rb" with: """ @@ -48,3 +48,50 @@ Feature: Ignoring paths | build/about/index.html | | build/plain/index.html | + Scenario: Ignore with directory indexes (output path direct) + Given a fixture app "ignore-app" + And a file named "config.rb" with: + """ + activate :directory_indexes + ignore 'about/' + ignore 'plain/' + """ + And a successfully built app at "ignore-app" + Then the following files should exist: + | build/index.html | + And the following files should not exist: + | build/about/index.html | + | build/plain/index.html | + + Scenario: Ignore with directory indexes (output path splat) + Given a fixture app "ignore-app" + And a file named "config.rb" with: + """ + activate :directory_indexes + ignore 'about*' + ignore 'plain*' + """ + And a successfully built app at "ignore-app" + Then the following files should exist: + | build/index.html | + And the following files should not exist: + | build/about/index.html | + | build/plain/index.html | + + Scenario: Ignore with directory indexes (output path index) + Given a fixture app "ignore-app" + And a file named "config.rb" with: + """ + activate :directory_indexes + ignore 'about/index.html' + ignore 'plain/index.html' + """ + And a successfully built app at "ignore-app" + Then the following files should exist: + | build/index.html | + And the following files should not exist: + | build/about/index.html | + | build/plain/index.html | + + +