lib/drg/tasks/upgrade_file.rb in drg-1.5.0 vs lib/drg/tasks/upgrade_file.rb in drg-1.5.1

- old
+ new

@@ -12,10 +12,10 @@ def call ruby_files.each do |ruby_file| contents = File.read(ruby_file) log %(Updating "#{ruby_file}") contents.gsub! /:(\w+)\s?=>/, '\1:' - contents.gsub!(/([A-Z]*[a-z0-9_!?.\[\]'()+=>:,&]+)\.(should)\s?==/, 'expect(\1).to eq') + # contents.gsub!(/([A-Z]*[a-z0-9_!?.\[\]'()+=>:,&]+)\.(should)\s?==/, 'expect(\1).to eq') contents.gsub! /Factory\.create/, 'create' contents.gsub! /Factory\.build/, 'build' contents.gsub! /Factory\.next/, 'generate' contents.gsub! /Factory\(/, 'create(' contents.gsub! /Factory\.attributes_for/, 'FactoryGirl.attributes_for'