Sha256: f8ee679e326ac5a63b77a3e33cef10451d4b2e05391f8dc20f723cb40ffe13e1
Contents?: true
Size: 764 Bytes
Versions: 6
Compression:
Stored size: 764 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.*")].map do |path| path.gsub(File.join(spec_root, ''), '') end end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
konacha-1.1.3 | lib/konacha.rb |
konacha-1.1.2 | lib/konacha.rb |
konacha-1.1.1 | lib/konacha.rb |
konacha-1.1.0 | lib/konacha.rb |
konacha-1.0.0 | lib/konacha.rb |
konacha-1.0.0.rc1 | lib/konacha.rb |