From 4d7b21185f3cdba72cc7f57320ccf73af17d0740 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Thu, 15 Jan 2015 09:56:28 +0000 Subject: [PATCH] fix strange change to how file contents are checked in aruba --- .../lib/middleman-core/step_definitions/builder_steps.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleman-core/lib/middleman-core/step_definitions/builder_steps.rb b/middleman-core/lib/middleman-core/step_definitions/builder_steps.rb index 1fdda193..21266e26 100644 --- a/middleman-core/lib/middleman-core/step_definitions/builder_steps.rb +++ b/middleman-core/lib/middleman-core/step_definitions/builder_steps.rb @@ -69,7 +69,7 @@ end # Provide this Aruba overload in case we're matching something with quotes in it Then /^the file "([^"]*)" should contain '([^']*)'$/ do |file, partial_content| - check_file_content(file, partial_content, true) + check_file_content(file, Regexp.new(Regexp.escape(partial_content)), true) end And /the file "(.*)" should be gzipped/ do |file|