Sha256: f347e46a17ab4da2157be4fea6c3bb8571e4c3439a1eecdca6e54fdea9b86899

Contents?: true

Size: 713 Bytes

Versions: 5

Compression:

Stored size: 713 Bytes

Contents

module Requires
  def self.run
    begin
      Dir.entries("#{TEST_CASE_DIR}/../elements").each { |i|
        next if i =~ /^\./ || i !~ /_elements\.rb$/
        puts "loading: #{i}"
        require "#{TEST_CASE_DIR}/../elements/#{i}"
      }
      Dir.entries("#{TEST_CASE_DIR}/../flows").each { |i|
        next if i =~ /^\./ || i !~ /.rb$/
        puts "loading: #{i}"
        require "#{TEST_CASE_DIR}/../flows/#{i}"
      }
      Dir.entries("#{TEST_CASE_DIR}/../helpers").each { |i|
        next if i =~ /^\./ || i !~ /.rb$/
        puts "loading: #{i}"
        require "#{TEST_CASE_DIR}/../helpers/#{i}"
      }
    rescue NameError => e
      raise e unless e.inspect =~ /TEST_CASE_DIR/
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
qa_robusta-0.1.9 qa_observer/lib/requires.rb
qa_robusta-0.1.8 qa_observer/lib/requires.rb
qa_robusta-0.1.5 qa_observer/lib/requires.rb
qa_robusta-0.1.4 qa_observer/lib/requires.rb
qa_robusta-0.1.3 qa_observer/lib/requires.rb