From cf1f6a095707ba95d7f037ebebfa952249fc13db Mon Sep 17 00:00:00 2001 From: Artem Baguinski Date: Tue, 9 Apr 2013 08:45:34 +0200 Subject: [PATCH] test nested partials_dir --- middleman-more/features/partials_dir.feature | 12 +++++++++++- .../source/nested/partials/_partial.html.erb | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 middleman-more/fixtures/partials-dir-app/source/nested/partials/_partial.html.erb diff --git a/middleman-more/features/partials_dir.feature b/middleman-more/features/partials_dir.feature index 52211565..8648c8e2 100644 --- a/middleman-more/features/partials_dir.feature +++ b/middleman-more/features/partials_dir.feature @@ -1,5 +1,5 @@ Feature: Partials dir - Scenario: Find partials in the custom partials dir + Scenario: Find partials in a custom partials dir Given a fixture app "partials-dir-app" And a file named "config.rb" with: """ @@ -9,6 +9,16 @@ Feature: Partials dir When I go to "/index.html" Then I should see "contents of the partial" + Scenario: Find partials in a nested custom partials dir + Given a fixture app "partials-dir-app" + And a file named "config.rb" with: + """ + set :partials_dir, 'nested/partials' + """ + And the Server is running + When I go to "/index.html" + Then I should see "contents of the nested partial" + Scenario: Find partials in the default partials dir Given a fixture app "default-partials-dir-app" And a file named "config.rb" with: diff --git a/middleman-more/fixtures/partials-dir-app/source/nested/partials/_partial.html.erb b/middleman-more/fixtures/partials-dir-app/source/nested/partials/_partial.html.erb new file mode 100644 index 00000000..b27433e1 --- /dev/null +++ b/middleman-more/fixtures/partials-dir-app/source/nested/partials/_partial.html.erb @@ -0,0 +1 @@ +contents of the nested partial