From ae7f75e5cc860b3555c384d8da20dad0ed572977 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Sat, 9 Feb 2013 15:53:21 -0800 Subject: [PATCH] Relative Assets shouldn't return a Pathname sometimes, the rest of the code expects Strings --- middleman-more/features/cache_buster.feature | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/middleman-more/features/cache_buster.feature b/middleman-more/features/cache_buster.feature index 7c094f7f..11040ba5 100644 --- a/middleman-more/features/cache_buster.feature +++ b/middleman-more/features/cache_buster.feature @@ -25,3 +25,18 @@ Feature: Generate mtime-based query string for busting browser caches When I go to "/cache-buster.html" Then I should see "site.css?" Then I should see "blank.gif?" + + Scenario: Rendering css with the feature and relative_assets enabled + Given "relative_assets" feature is "enabled" + Given "cache_buster" feature is "enabled" + And the Server is running at "cache-buster-app" + When I go to "/stylesheets/relative_assets.css" + Then I should see "blank.gif?" + + Scenario: Rendering html with the feature and relative_assets enabled + Given "relative_assets" feature is "enabled" + Given "cache_buster" feature is "enabled" + And the Server is running at "cache-buster-app" + When I go to "/cache-buster.html" + Then I should see "site.css?" + Then I should see "blank.gif?" \ No newline at end of file