Sha256: 45c610ca8cdfab1ee7233421f120ff364cb487053de97925a6d16af57801598b

Contents?: true

Size: 1.05 KB

Versions: 4

Compression:

Stored size: 1.05 KB

Contents

require 'rubygems'
require 'sinatra/base'
require 'capybara'
require 'launchy'
require 'evergreen/version'
require 'evergreen/application'
require 'json'
require 'evergreen/utils/timeout'

module Evergreen
  autoload :Cli, 'evergreen/cli'
  autoload :Server, 'evergreen/server'
  autoload :Runner, 'evergreen/runner'
  autoload :Suite, 'evergreen/suite'
  autoload :Spec, 'evergreen/spec'
  autoload :Template, 'evergreen/template'
  autoload :Helper, 'evergreen/helper'

  class << self
    attr_accessor :driver, :root, :application, :public_dir, :spec_dir, :template_dir, :helper_dir, :mounted_at

    def configure
      yield self
    end

    def use_defaults!
      configure do |config|
        config.application  = Evergreen::Application
        config.driver       = :selenium
        config.public_dir   = 'public'
        config.spec_dir     = 'spec/javascripts'
        config.template_dir = 'spec/javascripts/templates'
        config.helper_dir   = 'spec/javascripts/helpers'
        config.mounted_at   = ""
      end
    end
  end
end

Evergreen.use_defaults!

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
evergreen-1.2.0 lib/evergreen.rb
evergreen-1.1.3 lib/evergreen.rb
evergreen-1.1.2 lib/evergreen.rb
evergreen-1.1.0 lib/evergreen.rb