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-3.2.0 features/support/file_management.rb
reveal-ck-3.1.0 features/support/file_management.rb
reveal-ck-3.0.1 features/support/file_management.rb
reveal-ck-3.0.0 features/support/file_management.rb
reveal-ck-0.6.2 features/support/file_management.rb
reveal-ck-0.6.1 features/support/file_management.rb
reveal-ck-0.6.0 features/support/file_management.rb
reveal-ck-0.5.1 features/support/file_management.rb
reveal-ck-0.5.0 features/support/file_management.rb
reveal-ck-0.4.2 features/support/file_management.rb
reveal-ck-0.4.1 features/support/file_management.rb
reveal-ck-0.4.0 features/support/file_management.rb
reveal-ck-0.3.0 features/support/file_management.rb
reveal-ck-0.2.0 features/support/file_management.rb
reveal-ck-0.1.8 features/support/file_management.rb
reveal-ck-0.1.7 features/support/file_management.rb
reveal-ck-0.1.6 features/support/file_management.rb
reveal-ck-0.1.5 features/support/file_management.rb
reveal-ck-0.1.4 features/support/file_management.rb
reveal-ck-0.1.3 features/support/file_management.rb