Class: NeetoCompliance::SyncNeetoCommons::SyncTestSupport
- Inherits:
-
Object
- Object
- NeetoCompliance::SyncNeetoCommons::SyncTestSupport
- Defined in:
- lib/neeto_compliance/sync_neeto_commons/sync_test_support.rb
Constant Summary collapse
- SUPPORT_DIR =
"test/support"
Class Method Summary collapse
- .ensure_test_support_folder_exists ⇒ Object
- .process ⇒ Object
- .SUPPORT_FILES ⇒ Object
- .sync_support_files ⇒ Object
Class Method Details
.ensure_test_support_folder_exists ⇒ Object
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 |
.process ⇒ Object
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_FILES ⇒ Object
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_files ⇒ Object
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 |