Sha256: 102c7f8af88a465e2bd7f8bdc309ff082bc6c5c9934d5d456e26f09551b91155
Contents?: true
Size: 860 Bytes
Versions: 6
Compression:
Stored size: 860 Bytes
Contents
module Adva module Testing module Engine def setup_load_paths paths.app.each { |path| $:.unshift(path) if File.directory?(path) } ActiveSupport::Dependencies.autoload_paths.unshift(*paths.app) end def migrate ActiveRecord::Migrator.up(root.join('db/migrate')) end def load_assertions load_all('lib/testing/assertions') end def load_factories load_all('lib/testing/factories') end def load_cucumber_support load_all('lib/testing/step_definitions') load_all('lib/testing/paths') end def load_helpers load_all('lib/testing/helpers') end def load_all(search) Pathname.glob(root.join("#{search}{.rb,/*.rb}")).each do |file| require(file) if file.exist? end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems