This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
/
HACKING
61 lines (46 loc) · 1.75 KB
/
HACKING
1
2
3
4
5
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Grab a local clone of rtomayko/replicate:
git clone git://github.com/rtomayko/replicate.git
cd replicate
The default rake task installs the latest supported activerecord
version to a project local GEM_HOME=./vendor and runs the unit
tests:
$ rake
installing activerecord-3.1.0 to ./vendor/1.8
installing sqlite3 to ./vendor/1.8
Using activerecord 3.1.0
Loaded suite ...
Started
....................
Finished in 0.150186 seconds.
20 tests, 106 assertions, 0 failures, 0 errors
Use `rake test:all' to run tests under all activerecord versions:
$ rake test:all
installing activerecord ~> 2.2.3 to ./vendor
installing activerecord ~> 2.3.14 to ./vendor
installing activerecord ~> 3.0.10 to ./vendor
installing activerecord ~> 3.1.0 to ./vendor
==> testing activerecord ~> 2.2.3
Started
....................
Finished in 0.119517 seconds.
20 tests, 106 assertions, 0 failures, 0 errors
==> testing activerecord ~> 2.3.14
Started
....................
Finished in 0.119517 seconds.
20 tests, 106 assertions, 0 failures, 0 errors
<snip>
rake test:all should always be passing under latest stable MRI
1.8.7 and MRI 1.9.x.
Running individual test files directly requires setting the
GEM_HOME environment variable and ensuring ./lib is on the load
path:
export GEM_HOME=vendor/1.9 # or 1.8.7
ruby -Ilib test/active_record_test.rb
You can also control which activerecord version is used in the
test with the AR_VERSION environment variable:
rake setup:all
export GEM_HOME=vendor/1.8.7
AR_VERSION=3.1.0 ruby -rubygems -Ilib test/active_record_test.rb
If you have something worth sharing, please send a pull request:
https://github.com/rtomayko/replicate