]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/gems/rspec-1.1.2/lib/spec/runner/command_line.rb
Removing rspec from svn, as it isn't being used.
[rails.git] / vendor / gems / rspec-1.1.2 / lib / spec / runner / command_line.rb
diff --git a/vendor/gems/rspec-1.1.2/lib/spec/runner/command_line.rb b/vendor/gems/rspec-1.1.2/lib/spec/runner/command_line.rb
deleted file mode 100644 (file)
index 9849c48..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-require 'spec/runner/option_parser'
-
-module Spec
-  module Runner
-    # Facade to run specs without having to fork a new ruby process (using `spec ...`)
-    class CommandLine
-      class << self
-        # Runs specs. +argv+ is the commandline args as per the spec commandline API, +err+
-        # and +out+ are the streams output will be written to.
-        def run(instance_rspec_options)
-          # NOTE - this call to init_rspec_options is not spec'd, but neither is any of this
-          # swapping of $rspec_options. That is all here to enable rspec to run against itself
-          # and maintain coverage in a single process. Therefore, DO NOT mess with this stuff
-          # unless you know what you are doing!
-          init_rspec_options(instance_rspec_options)
-          orig_rspec_options = rspec_options
-          begin
-            $rspec_options = instance_rspec_options
-            return $rspec_options.run_examples
-          ensure
-            ::Spec.run = true
-            $rspec_options = orig_rspec_options
-          end
-        end
-      end
-    end
-  end
-end