factory_data_preloader 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{factory_data_preloader}
5
- s.version = "1.0.2"
5
+ s.version = "1.0.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Kyle J. Ginavan"]
@@ -1,4 +1,3 @@
1
- require 'test/unit'
2
1
  require 'rubygems'
3
2
  require 'singleton'
4
3
 
@@ -8,8 +8,8 @@
8
8
  patch_module = defined?(ActiveRecord::TestFixtures) ? ActiveRecord::TestFixtures : Test::Unit::TestCase
9
9
 
10
10
  patch_module.class_eval do
11
- def load_fixtures_with_preloaded_factory_data
12
- val = load_fixtures_without_preloaded_factory_data
11
+ def setup_fixtures_with_preloaded_factory_data
12
+ val = setup_fixtures_without_preloaded_factory_data
13
13
  FactoryData.preload_data!
14
14
  val
15
15
  end
@@ -19,7 +19,7 @@ patch_module.class_eval do
19
19
  teardown_fixtures_without_preloaded_factory_data
20
20
  end
21
21
 
22
- alias_method_chain :load_fixtures, :preloaded_factory_data
22
+ alias_method_chain :setup_fixtures, :preloaded_factory_data
23
23
  alias_method_chain :teardown_fixtures, :preloaded_factory_data
24
24
  end
25
25
 
@@ -1,5 +1,4 @@
1
1
  require 'rubygems'
2
- require 'test/unit'
3
2
  require 'shoulda'
4
3
  require 'sqlite3'
5
4
 
@@ -11,7 +10,6 @@ rescue LoadError
11
10
  # ruby-debug wasn't available so neither can the debugging be
12
11
  end
13
12
 
14
-
15
13
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
16
14
  $LOAD_PATH.unshift(File.dirname(__FILE__))
17
15
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factory_data_preloader
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: