Sha256: 698cbcfa7f5477a109f554f9ef8e36bb8142768df6bf6d7d7fe8e516e93c7cae
Contents?: true
Size: 926 Bytes
Versions: 2
Compression:
Stored size: 926 Bytes
Contents
#!/usr/bin/env ruby $LOAD_PATH.unshift File.dirname(__FILE__) + '/../vendor/plugins/rspec-rails/lib' # For rspec installed as plugin require 'optparse' require 'spec/rails/spec_server' puts "Loading Rails environment" ENV["RAILS_ENV"] = "test" require File.expand_path(File.dirname(__FILE__) + "/../config/environment") if Rails::VERSION::STRING >= '2.2' && Rails.configuration.cache_classes warn <<-MESSAGE #{'*'*50} spec_server won't reload your classes if config.cache_classes is set to true. Please modify environment/test.rb: config.cache_classes = false #{'*'*50} MESSAGE end options = Hash.new parser = OptionParser.new parser.on("-d", "--daemon") {|ignore| options[:daemon] = true } parser.on("-p", "--pid PIDFILE"){|pid| options[:pid] = pid } parser.parse!(ARGV) if options[:daemon] ::Spec::Rails::SpecServer.daemonize(options[:pid]) else ::Spec::Rails::SpecServer.run end puts "Ready"
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
dchelimsky-rspec-rails-1.1.99.9 | generators/rspec/templates/script/spec_server |
mcmire-rspec-rails-1.1.99.9 | generators/rspec/templates/script/spec_server |