public
Rubygem
Description: Makes tests easy on the fingers and the eyes
Homepage: http://www.thoughtbot.com/projects/shoulda
Clone URL: git://github.com/thoughtbot/shoulda.git
autogenerating test plugin link

git-svn-id: https://svn.thoughtbot.com/plugins/shoulda/trunk@193 
7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa
tsaleh (author)
Fri Aug 24 12:43:46 -0700 2007
commit  103377734c3b36a7457b1ac500ab107918687e0f
tree    cbadc3decd3cdb87d1fbd176f05c3cb4d0679994
parent  b070ab599356e010bdb73010acab73948bc00d5f
...
 
1
2
3
 
 
 
 
 
 
 
4
5
6
...
13
14
15
16
 
17
18
19
...
1
2
3
 
4
5
6
7
8
9
10
11
12
13
...
20
21
22
 
23
24
25
26
0
@@ -1,6 +1,13 @@
0
+require 'fileutils'
0
 # Load the environment
0
 ENV['RAILS_ENV'] = 'sqlite3'
0
-require File.dirname(__FILE__) + '/rails_root/config/environment.rb'
0
+
0
+# ln rails_root/vendor/plugins/shoulda => ../../../../
0
+rails_root = File.dirname(__FILE__) + '/rails_root'
0
+
0
+FileUtils.ln_s('../../../../', "#{rails_root}/vendor/plugins/shoulda") unless File.exists?("#{rails_root}/vendor/plugins/shoulda")
0
+
0
+require "#{rails_root}/config/environment.rb"
0
  
0
 # Load the testing framework
0
 require 'test_help'
0
@@ -13,7 +20,7 @@ ActiveRecord::Migrator.migrate("#{RAILS_ROOT}/db/migrate")
0
 # Setup the fixtures path
0
 Test::Unit::TestCase.fixture_path = File.join(File.dirname(__FILE__), "fixtures")
0
 # $LOAD_PATH.unshift(Test::Unit::TestCase.fixture_path)
0
-
0
+
0
 class Test::Unit::TestCase #:nodoc:
0
   def create_fixtures(*table_names)
0
     if block_given?

Comments

    No one has commented yet.