dfl-factories-and-workers 0.0.3 → 0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -3
- data/rails/init.rb +5 -3
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -10,9 +10,7 @@ Gemification by Jonathan Barket
|
|
10
10
|
|
11
11
|
Add it as a gem dependency
|
12
12
|
|
13
|
-
config.
|
14
|
-
config.gem 'dfl-factories-and-workers', :lib => 'factories-and-workers', :source => 'http://gems.github.com' unless RAILS_ENV=='production'
|
15
|
-
end
|
13
|
+
config.gem 'dfl-factories-and-workers', :lib => 'factories-and-workers', :source => 'http://gems.github.com' unless RAILS_ENV=='production'
|
16
14
|
|
17
15
|
Or install it as a gem manually
|
18
16
|
|
data/rails/init.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
require 'fileutils'
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
config.after_initialize do
|
4
|
+
%w(spec/factories.rb spec/factory_workers.rb test/factories.rb test/factory_workers.rb).each do |file|
|
5
|
+
path = File.join(Dir.pwd, file)
|
6
|
+
require path if File.exists?(path)
|
7
|
+
end
|
6
8
|
end
|