Sha256: 5399f5f62c290aeb35ba92dacb0d556886d3b8edaeb38dbdffe084a078f312e8
Contents?: true
Size: 796 Bytes
Versions: 2
Compression:
Stored size: 796 Bytes
Contents
require 'open3' module Evergreen class Spec attr_reader :name, :suite def initialize(suite, name) @suite = suite @name = name end def root suite.root end def full_path File.join(root, Evergreen.spec_dir, name) end def read if full_path =~ /\.coffee$/ require 'coffee-script' CoffeeScript.compile(File.read(full_path)) else File.read(full_path) end end alias_method :contents, :read def url "/run/#{name}" end def passed? runner.passed? end def failure_messages runner.failure_messages end def exist? File.exist?(full_path) end protected def runner @runner ||= suite.runner.spec_runner(self) end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
rails31-evergreen-0.4.1 | lib/evergreen/spec.rb |
evergreen-0.4.1 | lib/evergreen/spec.rb |