spec/support/aruba.rb in figaro-1.1.1 vs spec/support/aruba.rb in figaro-1.2.0
- old
+ new
@@ -1,19 +1,18 @@
require "aruba/api"
module ArubaHelpers
def insert_into_file_after(file, pattern, addition)
- content = prep_for_fs_check { IO.read(file) }
+ content = cd(".") { IO.read(file) }
content.sub!(pattern, "\\0\n#{addition}")
overwrite_file(file, content)
end
end
RSpec.configure do |config|
config.include(Aruba::Api)
config.include(ArubaHelpers)
config.before do
- @aruba_timeout_seconds = 60
- FileUtils.rm_rf(current_dir)
+ setup_aruba
end
end