public
Description: Gitorious aims to provide a great way of doing distributed opensource code collaboration.
Homepage: http://gitorious.org/projects/gitorious
Clone URL: git://github.com/dysinger/gitorious.git
Search Repo:
updated support files
Johan Sørensen (author)
Sat Nov 17 15:21:31 -0800 2007
commit  0a7b4ac74b5ee6020894dd20a7267a726f2a2c73
tree    d06fe166d4f7129b62bd195a933ee3c5398c3909
parent  6f6e805eb0e6010a8cf99eb2f67b091b3827d252
...
1
 
 
2
...
 
1
2
3
0
@@ -1,3 +1,4 @@
0
-*/.DS_STORE
0
+*/.DS_Store
0
+.DS_Store
0
 coverage/*
...
1
2
3
4
 
...
1
2
3
 
4
0
@@ -1,5 +1,5 @@
0
 #!/usr/bin/env ruby
0
 $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + "/../vendor/plugins/rspec/lib"))
0
 require 'spec'
0
-::Spec::Runner::CommandLine.run(ARGV, STDERR, STDOUT, true, true)
0
+exit ::Spec::Runner::CommandLine.run(::Spec::Runner::OptionParser.parse(ARGV, STDERR, STDOUT))
...
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
 
 
 
23
24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
26
27
28
29
 
 
 
 
 
 
 
 
30
31
32
...
43
44
45
46
 
47
48
49
...
6
7
8
 
 
 
 
 
9
10
 
11
12
13
 
 
 
14
15
16
17
 
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 
 
36
37
38
39
40
41
42
43
44
45
46
...
57
58
59
 
60
61
62
63
0
@@ -6,27 +6,41 @@
0
 require 'rbconfig'
0
 require 'spec'
0
 require 'optparse'
0
-specmate = ENV['HOME'] + "/Library/Application\ Support/TextMate/Bundles/RSpec.tmbundle/Support/lib"
0
-if File.directory?(specmate)
0
- $LOAD_PATH.unshift(specmate)
0
- require 'text_mate_formatter'
0
-end
0
 
0
 # This is based on Florian Weber's TDDMate
0
-
0
 module Spec
0
   module Runner
0
     class RailsSpecServer
0
- def run(args, stderr, stdout)
0
- $stdout = stdout
0
- $stderr = stderr
0
+ def run(argv, stderr, stdout)
0
+ $stdout = stdout
0
+ $stderr = stderr
0
 
0
- ::Dispatcher.reset_application!
0
+ base = ActiveRecord::Base
0
+ def base.clear_reloadable_connections!
0
+ active_connections.each do |name, conn|
0
+ if conn.requires_reloading?
0
+ conn.disconnect!
0
+ active_connections.delete(name)
0
+ end
0
+ end
0
+ end
0
+
0
+ if ::Dispatcher.respond_to?(:cleanup_application)
0
+ ::Dispatcher.cleanup_application
0
+ elsif ::Dispatcher.respond_to?(:reset_application!)
0
+ ::Dispatcher.reset_application!
0
+ end
0
         ::Dependencies.mechanism = :load
0
         require_dependency('application.rb') unless Object.const_defined?(:ApplicationController)
0
         load File.dirname(__FILE__) + '/../spec/spec_helper.rb'
0
-
0
- ::Spec::Runner::CommandLine.run(args, stderr, stdout, false, true)
0
+
0
+ ::Spec::Runner::CommandLine.run(
0
+ ::Spec::Runner::OptionParser.parse(
0
+ argv,
0
+ $stderr,
0
+ $stdout
0
+ )
0
+ )
0
       end
0
     end
0
   end
0
@@ -43,7 +57,7 @@
0
   ruby = File::join(config['bindir'], config['ruby_install_name']) + config['EXEEXT']
0
   command_line = [ruby, $0, ARGV].flatten.join(' ')
0
   exec(command_line)
0
-end
0
+end
0
 
0
 def daemonize(pid_file = nil)
0
   return yield if $DEBUG
...
 
 
...
1
2
0
@@ -1 +1,3 @@
0
+--exclude "spec/*,gems/*"
0
+--rails
...
 
 
 
 
...
1
2
3
4
0
@@ -1 +1,5 @@
0
+dir = File.dirname(__FILE__)
0
+Dir[File.expand_path("#{dir}/**/*.rb")].uniq.each do |file|
0
+ require file
0
+end
...
 
 
 
...
1
2
3
0
@@ -1 +1,4 @@
0
+ENV["RAILS_ENV"] = "test"
0
+require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
0
+require 'spec/rails/story_adapter'

Comments

    No one has commented yet.