Sha256: 42f29b8be1cefdfc29fa73db6814d3599ec9cf6e2895f2fd64efec9d1ed2a1af
Contents?: true
Size: 780 Bytes
Versions: 3
Compression:
Stored size: 780 Bytes
Contents
require "konacha/engine" require "konacha/runner" require "konacha/server" module Konacha class << self attr_accessor :mode def serve puts "Your tests are here:" puts " http://localhost:#{port}/" self.mode = :server Konacha::Server.start end def run self.mode = :runner Konacha::Runner.start end def config Konacha::Engine.config.konacha end def configure yield config end delegate :port, :spec_dir, :application, :driver, :to => :config def spec_root File.join(Rails.root, config.spec_dir) end def spec_paths Dir[File.join(spec_root, "**{,/*/**}/*{_spec,_test}.*")].map do |path| path.gsub(File.join(spec_root, ''), '') end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
konacha-1.3.0 | lib/konacha.rb |
konacha-1.2.4 | lib/konacha.rb |
konacha-1.2.3 | lib/konacha.rb |