From f02713788dc5dbb15393f1a6fe9224c9af6d600c 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 5582db77..47292862 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|