From f20b7d8bd299756295dc1a7506997f0967b3703d Mon Sep 17 00:00:00 2001 From: "maul.esel" Date: Thu, 12 Sep 2013 20:19:56 +0200 Subject: [PATCH] use assert_match --- features/step_definitions/jekyll_steps.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/step_definitions/jekyll_steps.rb b/features/step_definitions/jekyll_steps.rb index 66ae8eaf..21f24062 100644 --- a/features/step_definitions/jekyll_steps.rb +++ b/features/step_definitions/jekyll_steps.rb @@ -142,7 +142,7 @@ Then /^the (.*) directory should exist$/ do |dir| end Then /^I should see "(.*)" in "(.*)"$/ do |text, file| - assert Regexp.new(text).match(file_contents(file)) + assert_match Regexp.new(text), file_contents(file) end Then /^I should see exactly "(.*)" in "(.*)"$/ do |text, file| @@ -154,7 +154,7 @@ Then /^I should not see "(.*)" in "(.*)"$/ do |text, file| end Then /^I should see escaped "(.*)" in "(.*)"$/ do |text, file| - assert Regexp.new(Regexp.escape(text)).match(file_contents(file)) + assert_match Regexp.new(Regexp.escape(text)), file_contents(file) end Then /^the "(.*)" file should exist$/ do |file|