Sha256: 013241e854a242976e1177673f9f53d0a25a37e948447cc30322b57c38ae17ea

Contents?: true

Size: 589 Bytes

Versions: 23

Compression:

Stored size: 589 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
  in_current_dir 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

23 entries across 23 versions & 1 rubygems

Version Path
reveal-ck-0.1.2 features/support/file_management.rb
reveal-ck-0.1.1 features/support/file_management.rb
reveal-ck-0.1.0 features/support/file_management.rb