public
Fork of lazyatom/engines
Description: The Rails Engines plugin
Homepage: http://rails-engines.org
Clone URL: git://github.com/tekkub/engines.git
Updated the README to include details of the new test task, and updated 
other misc files.
lazyatom (author)
Sun Apr 20 05:31:18 -0700 2008
commit  7fe93e51cc26f0aacbbca6ea7c37c86df6aec8a4
tree    0c32faa9aaf4eca52ba2e7a78c2a36e38448f59b
parent  a725cbeeaa91bfc1d83d68fdd654cd6ed13f6ebc
...
 
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
12
0
@@ -1,3 +1,12 @@
0
+= EDGE
0
+
0
+* Refactored the view loading to work with changes in Edge Rails
0
+
0
+* Fixed integration of plugin migrations with the new, default timestamped migrations in Edge Rails
0
+
0
+* Refactored tests into the plugin itself - the plugin can now generate its own test_app harness and run tests within it.
0
+
0
+
0
 = 2.0.0 - (ANOTHER) MASSIVE INTERNAL REFACTORING
0
 
0
 * Engines now conforms to the new plugin loading mechanism, delegating plugin load order and lots of other things to Rails itself.
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-Copyright (c) 2007 James Adam
0
+Copyright (c) 2008 James Adam
0
 
0
 The MIT License
0
 
0
...
60
61
62
63
64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
60
61
62
 
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
0
@@ -60,4 +60,24 @@ The engines plugin enhances and adds to the suite of default rake tasks for work
0
 
0
   rake -T
0
   
0
-to see the set of rake tasks available.
0
\ No newline at end of file
0
+to see the set of rake tasks available.
0
+
0
+= Testing the engines plugin itself
0
+
0
+Because of the way the engines plugin modifies Rails, the simplest way to consistently test it against multiple versions is by generating a test harness application - a full Rails application that includes tests to verify the engines plugin behaviour in a real, running environment.
0
+
0
+Run the tests like this:
0
+
0
+ $ cd engines
0
+ $ rake test
0
+
0
+This will generate a test_app directory within the engines plugin (using the default 'rails' command), import tests and code into that application and then run the test suite.
0
+
0
+If you wish to test against a specific version of Rails, run the tests with the RAILS environment variable set to the local directory containing your Rails checkout
0
+
0
+ $ rake test RAILS=/Users/james/Code/rails_edge_checkout
0
+
0
+Alternatively, you can clone the latest version of Rails ('edge rails') from github like so:
0
+
0
+ $ rake test RAILS=edge
0
+

Comments

    No one has commented yet.