features/step_definitions/steps.rb in cobench-0.0.47 vs features/step_definitions/steps.rb in cobench-0.0.48
- old
+ new
@@ -38,10 +38,10 @@
FileUtils.rm_rf(@dir)
end
Given(/^I have a "([^"]*)" file with content:$/) do |file, text|
FileUtils.mkdir_p(File.dirname(file)) unless File.exist?(file)
- File.write(file, text.gsub(/\\xFF/, 0xFF.chr))
+ File.write(file, text.gsub('\\xFF', 0xFF.chr))
end
When(%r{^I run bin/cobench with "([^"]*)"$}) do |arg|
home = File.join(File.dirname(__FILE__), '../..')
@stdout = `ruby -I#{home}/lib #{home}/bin/cobench #{arg}`