Class: NeetoCompliance::SyncNeetoCommons::SyncTestSupport

Inherits:
Object
  • Object
show all
Defined in:
lib/neeto_compliance/sync_neeto_commons/sync_test_support.rb

Constant Summary collapse

SUPPORT_DIR =
"test/support"

Class Method Summary collapse

Class Method Details

.ensure_test_support_folder_existsObject



23
24
25
26
27
28
# File 'lib/neeto_compliance/sync_neeto_commons/sync_test_support.rb', line 23

def self.ensure_test_support_folder_exists
  unless File.directory?(SUPPORT_DIR)
    puts "Creating test support directory..."
    FileUtils.mkdir_p SUPPORT_DIR
  end
end

.processObject



18
19
20
21
# File 'lib/neeto_compliance/sync_neeto_commons/sync_test_support.rb', line 18

def self.process
  ensure_test_support_folder_exists
  sync_support_files
end

.SUPPORT_FILESObject



12
13
14
15
16
# File 'lib/neeto_compliance/sync_neeto_commons/sync_test_support.rb', line 12

def self.SUPPORT_FILES
  [
    "test/support/assertion_support.rb"
  ]
end

.sync_support_filesObject



30
31
32
33
34
35
# File 'lib/neeto_compliance/sync_neeto_commons/sync_test_support.rb', line 30

def self.sync_support_files
  self.SUPPORT_FILES.each do |file|
    print "Copying #{file}...\n"
    system(`cp #{NeetoCompliance::SyncNeetoCommons.neeto_commons_url}#{file} #{file}`)
  end
end