Sha256: 45922d2733fb03820203006a1ce4da793f0f87847d385b24ede7e53928e34ec5

Contents?: true

Size: 581 Bytes

Versions: 13

Compression:

Stored size: 581 Bytes

Contents

# Absolute path of reveal-ck/features
def features_dir
  File.expand_path(File.join(File.dirname(__FILE__), '..'))
end

# Support for easily copying any file underneath features to a new
# location. Presumed to be helpful for copying around test data stored
# at reveal-ck/features/data.
def copy_file_under_features(rel_features_file, dest_file)
  abs_features_file = File.join features_dir, rel_features_file
  cd '.' do
    dest_dir = File.dirname dest_file
    FileUtils.mkdir_p(dest_dir) unless File.directory?(dest_dir)
    FileUtils.cp abs_features_file, dest_dir
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
reveal-ck-4.0.0 features/support/file_management.rb
reveal-ck-3.9.2 features/support/file_management.rb
reveal-ck-3.9.1 features/support/file_management.rb
reveal-ck-3.9.0 features/support/file_management.rb
reveal-ck-3.8.1 features/support/file_management.rb
reveal-ck-3.8.0 features/support/file_management.rb
reveal-ck-3.7.0 features/support/file_management.rb
reveal-ck-3.6.0 features/support/file_management.rb
reveal-ck-3.5.1 features/support/file_management.rb
reveal-ck-3.5.0 features/support/file_management.rb
reveal-ck-3.4.0 features/support/file_management.rb
reveal-ck-3.3.1 features/support/file_management.rb
reveal-ck-3.3.0 features/support/file_management.rb