Sha256: 3e196859bbd266e7286158f6db7bb7917bad98900e8443725eaa393c4694dcaf

Contents?: true

Size: 1.12 KB

Versions: 12

Compression:

Stored size: 1.12 KB

Contents

module Jasmine
  class RunnerConfig
    def initialize(config = Jasmine::Config.new)
      @config = config
    end

    def css_files
      @config.jasmine_stylesheets + @config.user_stylesheets
    end

    def jasmine_files
      @config.jasmine_javascripts
    end

    def js_files
      @config.js_files
    end

    def spec_files
      @config.spec_files
    end

    def spec_files_full_paths
      @config.spec_files_full_paths
    end

    def spec_path
      @config.spec_path
    end

    def spec_dir
      @config.spec_dir
    end

    def src_dir
      @config.src_dir
    end

    def project_root
      @config.project_root
    end

    def root_path
      @config.root_path
    end

    def browser
      ENV["JASMINE_BROWSER"] || 'firefox'
    end

    def port
      @config.port
    end

    def jasmine_server_url
      "#{@config.jasmine_host}:#{@config.port}/"
    end

    def src_mapper=(context)
      @config.src_mapper = context
    end

    def src_mapper
      @config.src_mapper
    end

    def result_batch_size
      ENV["JASMINE_RESULT_BATCH_SIZE"] ? ENV["JASMINE_RESULT_BATCH_SIZE"].to_i : 50
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
rally-jasmine-1.2.0.11 lib/jasmine/runner_config.rb
rally-jasmine-1.2.0.10 lib/jasmine/runner_config.rb
rally-jasmine-1.2.0.8 lib/jasmine/runner_config.rb
jasmine-1.3.0 lib/jasmine/runner_config.rb
rally-jasmine-1.2.0.7 lib/jasmine/runner_config.rb
rally-jasmine-1.2.0.6 lib/jasmine/runner_config.rb
rally-jasmine-1.2.0.5 lib/jasmine/runner_config.rb
rally-jasmine-1.2.0.4 lib/jasmine/runner_config.rb
rally-jasmine-1.2.0.3 lib/jasmine/runner_config.rb
rally-jasmine-1.2.0.2 lib/jasmine/runner_config.rb
rally-jasmine-1.2.0.1 lib/jasmine/runner_config.rb
rally-jasmine-1.2.0 lib/jasmine/runner_config.rb