Sha256: 73a91b719ef4e64c0a0e094ed52cdc717fd868a3ac5a7a52e5c2bfa157f0524e
Contents?: true
Size: 705 Bytes
Versions: 6
Compression:
Stored size: 705 Bytes
Contents
# @private module Lopata::Loader extend self # Loads scenarios for running in current session # # @param args [Array<String>] files to be load. # All files from default location to be loaded if empty. def load_scenarios(*args) if args.empty? load_all_scenarios else args.each do |file| load File.expand_path(file) end end end # Loads all scenarios from predefined paths def load_all_scenarios Dir["scenarios/**/*.rb"].each { |f| load File.expand_path(f) } end # Loads all shared steps from predefined paths def load_shared_steps Dir["shared_steps/**/*rb"].each { |f| load File.expand_path(f) } end end
Version data entries
6 entries across 6 versions & 1 rubygems