plugin_test_helper 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,14 @@
1
1
  == master
2
2
 
3
+ == 0.1.6 / 2008-12-06
4
+
5
+ * Remove all dependencies on plugin_test_helper when using the plugin_test_structure generator
6
+ * Add a test_helper to the plugin_test_structure generator [Jinzhu Zhang]
7
+ * Use the main application vendor/rails in which the plugin exists as the default vendor install if RAILS_FRAMEWORK_ROOT isn't defined [Jinzhu Zhang]
8
+ * Update boot file to Rails 2.1.1+ requirements (i.e. RubyGems 1.1.1+)
9
+ * Fix tests to reference ActiveSupport::Dependencies instead of Dependencies
10
+ * Automatically load ActionView::TestCase
11
+
3
12
  == 0.1.5 / 2008-07-13
4
13
 
5
14
  * Don't load ActiveSupport before the environment has been initialized since it can hide problems in the plugin being tested
data/Rakefile CHANGED
@@ -5,11 +5,11 @@ require 'rake/contrib/sshpublisher'
5
5
 
6
6
  spec = Gem::Specification.new do |s|
7
7
  s.name = 'plugin_test_helper'
8
- s.version = '0.1.5'
8
+ s.version = '0.1.6'
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.summary = 'Simplifies plugin testing by creating an isolated Rails environment that simulates its usage in a real application.'
11
11
 
12
- s.files = FileList['{generators,lib,test}/**/*'].to_a - FileList['generators/plugin_test_structure/templates/app_root/log/*'].to_a + %w(CHANGELOG.rdoc init.rb LICENSE Rakefile README.rdoc)
12
+ s.files = FileList['{generators,lib,test}/**/*'] + %w(CHANGELOG.rdoc init.rb LICENSE Rakefile README.rdoc) - FileList['generators/plugin_test_structure/templates/app_root/{log,log/*,script,script/*}']
13
13
  s.require_path = 'lib'
14
14
  s.has_rdoc = true
15
15
  s.test_files = Dir['test/**/*_test.rb']
@@ -1,4 +1,4 @@
1
- # Generates the class, helper, and view for a controller in a plugin's test application
1
+ # Generates the class and view for a controller in a plugin's test application
2
2
  class PluginTestControllerGenerator < PluginAWeek::PluginTestHelper::Generator
3
3
  def manifest #:nodoc:
4
4
  record do |m|
@@ -31,7 +31,6 @@ class PluginTestModelGenerator < PluginAWeek::PluginTestHelper::Generator
31
31
  def add_options!(opt)
32
32
  opt.separator ''
33
33
  opt.separator 'Options:'
34
- opt.on("--skip-migration",
35
- "Don't generate a migration file for this model") { |v| options[:skip_migration] = v }
34
+ opt.on('--skip-migration', "Don't generate a migration file for this model") {|v| options[:skip_migration] = v}
36
35
  end
37
36
  end
@@ -1,12 +1,13 @@
1
1
  Description:
2
- Stubs out a new test application. Pass the plugin name, under_scored.
2
+ Stubs out a new test application that has no dependencies in plugin_test_helper. Pass the plugin name, under_scored.
3
3
 
4
4
  This generates the application structure in test/app_root
5
5
 
6
6
  Examples:
7
7
  `./script/generate plugin_test_structure has_comments`
8
8
 
9
- creates a controller and application configurations:
9
+ creates test, controller and application configurations:
10
+ Test Helper: test/test_helper.rb
10
11
  Controller: test/app_root/app/controllers/application.rb
11
12
  Configurations: test/app_root/config/boot.rb
12
13
  test/app_root/config/database.yml
@@ -17,3 +18,4 @@ Examples:
17
18
  test/app_root/config/environments/postgresql.rb
18
19
  test/app_root/config/environments/sqlite.rb
19
20
  test/app_root/config/environments/sqlite3.rb
21
+ Scripts: test/app_root/script/console
@@ -1,4 +1,5 @@
1
- # Generates the test structure for a plugin
1
+ # Generates the test structure for a plugin with no dependencies on the
2
+ # plugin_test_helper library
2
3
  class PluginTestStructureGenerator < Rails::Generator::NamedBase
3
4
  def manifest #:nodoc:
4
5
  record do |m|
@@ -6,6 +7,9 @@ class PluginTestStructureGenerator < Rails::Generator::NamedBase
6
7
  plugin_test_root = "vendor/plugins/#{name}/test"
7
8
  templates_root = "#{File.dirname(__FILE__)}/templates"
8
9
 
10
+ # Root test directory
11
+ m.directory plugin_test_root
12
+
9
13
  # Copy all directories and files. None of them are templated so that they
10
14
  # can be reused during runtime
11
15
  Dir["#{templates_root}/**/*"].each do |source_file|
@@ -1,5 +1,5 @@
1
1
  # Allow customization of the rails framework path
2
- RAILS_FRAMEWORK_ROOT = (ENV['RAILS_FRAMEWORK_ROOT'] || "#{RAILS_ROOT}/vendor/rails") unless defined?(RAILS_FRAMEWORK_ROOT)
2
+ RAILS_FRAMEWORK_ROOT = (ENV['RAILS_FRAMEWORK_ROOT'] || "#{File.dirname(__FILE__)}/../../../../../../vendor/rails") unless defined?(RAILS_FRAMEWORK_ROOT)
3
3
 
4
4
  # Don't change this file!
5
5
  # Configure your app in config/environment.rb and config/environments/*.rb
@@ -70,7 +70,7 @@ module Rails
70
70
 
71
71
  class << self
72
72
  def rubygems_version
73
- Gem::RubyGemsVersion if defined? Gem::RubyGemsVersion
73
+ Gem::RubyGemsVersion rescue nil
74
74
  end
75
75
 
76
76
  def gem_version
@@ -85,14 +85,14 @@ module Rails
85
85
 
86
86
  def load_rubygems
87
87
  require 'rubygems'
88
-
89
- unless rubygems_version >= '0.9.4'
90
- $stderr.puts %(Rails requires RubyGems >= 0.9.4 (you have #{rubygems_version}). Please `gem update --system` and try again.)
88
+ min_version = '1.1.1'
89
+ unless rubygems_version >= min_version
90
+ $stderr.puts %Q(Rails requires RubyGems >= #{min_version} (you have #{rubygems_version}). Please `gem update --system` and try again.)
91
91
  exit 1
92
92
  end
93
-
93
+
94
94
  rescue LoadError
95
- $stderr.puts %(Rails requires RubyGems >= 0.9.4. Please install RubyGems and try again: http://rubygems.rubyforge.org)
95
+ $stderr.puts %Q(Rails requires RubyGems >= #{min_version}. Please install RubyGems and try again: http://rubygems.rubyforge.org)
96
96
  exit 1
97
97
  end
98
98
 
@@ -1,6 +1,13 @@
1
- require 'config/boot'
1
+ require File.join(File.dirname(__FILE__), 'boot')
2
2
 
3
3
  Rails::Initializer.run do |config|
4
4
  config.cache_classes = false
5
5
  config.whiny_nils = true
6
+ config.plugin_locators.unshift(
7
+ Class.new(Rails::Plugin::Locator) do
8
+ def plugins
9
+ [Rails::Plugin.new(File.expand_path('.'))]
10
+ end
11
+ end
12
+ ) unless defined?(PluginAWeek::PluginTestHelper::PluginLocator)
6
13
  end
@@ -0,0 +1,20 @@
1
+ # Set the default environment to sqlite3's in_memory database
2
+ ENV['RAILS_ENV'] ||= 'in_memory'
3
+
4
+ # Load the Rails environment and testing framework
5
+ require "#{File.dirname(__FILE__)}/app_root/config/environment"
6
+ require 'test_help'
7
+ require 'action_view/test_case' # Load additional test classes not done automatically by < Rails 2.2.2
8
+
9
+ # Undo changes to RAILS_ENV
10
+ silence_warnings {RAILS_ENV = ENV['RAILS_ENV']}
11
+
12
+ # Run the migrations
13
+ ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate")
14
+
15
+ # Set default fixture loading properties
16
+ Test::Unit::TestCase.class_eval do
17
+ self.use_transactional_fixtures = true
18
+ self.use_instantiated_fixtures = false
19
+ self.fixture_path = "#{File.dirname(__FILE__)}/fixtures"
20
+ end
@@ -9,7 +9,7 @@ $:.unshift(RAILS_ROOT)
9
9
  # Set the default environment to sqlite3's in_memory database
10
10
  ENV['RAILS_ENV'] ||= 'in_memory'
11
11
 
12
- # First boost the Rails framework
12
+ # First boot the Rails framework
13
13
  require 'config/boot'
14
14
 
15
15
  # Extend it so that we can hook into the initialization process
@@ -19,12 +19,16 @@ require 'plugin_test_helper/extensions/initializer'
19
19
  require 'config/environment'
20
20
  require 'test_help'
21
21
 
22
+ # Load additional test classes not done automatically by < Rails 2.2.2
23
+ # TODO: Remove in Rails 2.2.3 / 2.3 (whichever includes the fix)
24
+ require 'action_view/test_case'
25
+
22
26
  # Undo changes to RAILS_ENV
23
27
  silence_warnings {RAILS_ENV = ENV['RAILS_ENV']}
24
28
 
25
29
  # Set default fixture loading properties
26
- class Test::Unit::TestCase #:nodoc:
30
+ Test::Unit::TestCase.class_eval do
27
31
  self.use_transactional_fixtures = true
28
- self.use_instantiated_fixtures = false
32
+ self.use_instantiated_fixtures = false
29
33
  self.fixture_path = "#{Rails.root}/../fixtures"
30
34
  end
@@ -16,6 +16,5 @@ class PluginTestConsoleGeneratorTest < Test::Unit::TestCase
16
16
 
17
17
  def teardown
18
18
  teardown_app
19
- FileUtils.rm_r(Dir.glob('test/app_root/*'))
20
19
  end
21
20
  end
@@ -20,6 +20,5 @@ class PluginTestControllerGeneratorTest < Test::Unit::TestCase
20
20
 
21
21
  def teardown
22
22
  teardown_app
23
- FileUtils.rm_r(Dir.glob('test/app_root/*'))
24
23
  end
25
24
  end
@@ -16,6 +16,5 @@ class PluginTestHelperGeneratorTest < Test::Unit::TestCase
16
16
 
17
17
  def teardown
18
18
  teardown_app
19
- FileUtils.rm_r(Dir.glob('test/app_root/*'))
20
19
  end
21
20
  end
@@ -75,6 +75,5 @@ class PluginTestHelperTest < Test::Unit::TestCase
75
75
  teardown_app
76
76
 
77
77
  $LOAD_PATH.replace(@original_load_path)
78
- FileUtils.rm_r(Dir.glob('test/app_root/*'))
79
78
  end
80
79
  end
@@ -18,6 +18,5 @@ class PluginTestMigrationGeneratorTest < Test::Unit::TestCase
18
18
 
19
19
  def teardown
20
20
  teardown_app
21
- FileUtils.rm_r(Dir.glob('test/app_root/*'))
22
21
  end
23
22
  end
@@ -26,6 +26,5 @@ class PluginTestModelGeneratorTest < Test::Unit::TestCase
26
26
 
27
27
  def teardown
28
28
  teardown_app
29
- FileUtils.rm_r(Dir.glob('test/app_root/*'))
30
29
  end
31
30
  end
@@ -10,6 +10,10 @@ class PluginTestStructureGeneratorTest < Test::Unit::TestCase
10
10
  Rails::Generator::Scripts::Generate.new.run(['plugin_test_structure', 'acts_as_foo'])
11
11
  end
12
12
 
13
+ def test_should_create_test_helper
14
+ assert File.exists?("#{Rails.root}/vendor/plugins/acts_as_foo/test/test_helper.rb")
15
+ end
16
+
13
17
  def test_should_create_application_controller
14
18
  assert File.exists?("#{Rails.root}/vendor/plugins/acts_as_foo/test/app_root/app/controllers/application.rb")
15
19
  end
@@ -50,8 +54,11 @@ class PluginTestStructureGeneratorTest < Test::Unit::TestCase
50
54
  assert File.exists?("#{Rails.root}/vendor/plugins/acts_as_foo/test/app_root/config/routes.rb")
51
55
  end
52
56
 
57
+ def test_should_create_console_script
58
+ assert File.exists?("#{Rails.root}/vendor/plugins/acts_as_foo/test/app_root/script/console")
59
+ end
60
+
53
61
  def teardown
54
62
  teardown_app
55
- FileUtils.rm_r(Dir.glob('test/app_root/*'))
56
63
  end
57
64
  end
data/test/test_helper.rb CHANGED
@@ -3,10 +3,17 @@ require 'fileutils'
3
3
 
4
4
  $:.unshift("#{File.dirname(__FILE__)}/../lib")
5
5
 
6
- FileUtils.rmtree('test/app_root')
6
+ # Ensure the app root is empty
7
+ FileUtils.rm_rf('test/app_root')
7
8
  FileUtils.mkdir('test/app_root')
8
9
 
9
- class Test::Unit::TestCase
10
+ # Use an in-memory log so that the app root can be removed without having to
11
+ # close all loggers in use
12
+ require 'logger'
13
+ require 'stringio'
14
+ Object.const_set('RAILS_DEFAULT_LOGGER', Logger.new(StringIO.new))
15
+
16
+ Test::Unit::TestCase.class_eval do
10
17
  private
11
18
  def assert_valid_environment
12
19
  assert_not_nil ApplicationController
@@ -14,8 +21,9 @@ class Test::Unit::TestCase
14
21
  end
15
22
 
16
23
  def setup_app(name)
17
- FileUtils.cp_r(Dir.glob("test/app_roots/#{name}/*"), 'test/app_root')
24
+ FileUtils.cp_r(Dir["test/app_roots/#{name}/*"], 'test/app_root')
18
25
 
26
+ # Load the environment
19
27
  load 'plugin_test_helper.rb'
20
28
  assert_valid_environment
21
29
  end
@@ -24,12 +32,17 @@ class Test::Unit::TestCase
24
32
  # Clear dependencies
25
33
  self.class.use_transactional_fixtures = false
26
34
  ActiveRecord::Base.reset_subclasses
27
- Dependencies.clear
35
+ ActiveSupport::Dependencies.clear
36
+
37
+ # Reset open streams
28
38
  ActiveRecord::Base.clear_reloadable_connections!
29
39
 
30
40
  # Forget that the environment files were loaded so that a new app environment
31
41
  # can be set up again
32
42
  $".delete('config/environment.rb')
33
43
  $".delete('test_help.rb')
44
+
45
+ # Remove the app folder
46
+ FileUtils.rm_r(Dir['test/app_root/*'])
34
47
  end
35
48
  end
@@ -13,7 +13,6 @@ class PluginLocatorTest < Test::Unit::TestCase
13
13
 
14
14
  def teardown
15
15
  teardown_app
16
- $LOAD_PATH.replace(@original_load_path)
17
- FileUtils.rm_r(Dir.glob('test/app_root/*'))
16
+ $LOAD_PATH.replace(@original_load_path)
18
17
  end
19
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plugin_test_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Pfeifer
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-07-13 00:00:00 -04:00
12
+ date: 2008-12-06 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -23,10 +23,17 @@ extra_rdoc_files: []
23
23
 
24
24
  files:
25
25
  - generators/plugin_test_console
26
- - generators/plugin_test_console/plugin_test_console_generator.rb
27
26
  - generators/plugin_test_console/templates
28
27
  - generators/plugin_test_console/templates/console
28
+ - generators/plugin_test_console/plugin_test_console_generator.rb
29
29
  - generators/plugin_test_console/USAGE
30
+ - generators/plugin_test_model
31
+ - generators/plugin_test_model/templates
32
+ - generators/plugin_test_model/templates/migration.rb
33
+ - generators/plugin_test_model/templates/fixtures.yml
34
+ - generators/plugin_test_model/templates/model.rb
35
+ - generators/plugin_test_model/plugin_test_model_generator.rb
36
+ - generators/plugin_test_model/USAGE
30
37
  - generators/plugin_test_helper
31
38
  - generators/plugin_test_helper/templates
32
39
  - generators/plugin_test_helper/templates/test_helper.rb
@@ -34,106 +41,98 @@ files:
34
41
  - generators/plugin_test_helper/USAGE
35
42
  - generators/plugin_test_structure
36
43
  - generators/plugin_test_structure/templates
44
+ - generators/plugin_test_structure/templates/test_helper.rb
37
45
  - generators/plugin_test_structure/templates/app_root
38
- - generators/plugin_test_structure/templates/app_root/app
39
- - generators/plugin_test_structure/templates/app_root/app/controllers
40
- - generators/plugin_test_structure/templates/app_root/app/controllers/application.rb
41
46
  - generators/plugin_test_structure/templates/app_root/config
42
47
  - generators/plugin_test_structure/templates/app_root/config/environment.rb
43
48
  - generators/plugin_test_structure/templates/app_root/config/environments
44
- - generators/plugin_test_structure/templates/app_root/config/environments/mysql.rb
45
- - generators/plugin_test_structure/templates/app_root/config/environments/sqlite3.rb
49
+ - generators/plugin_test_structure/templates/app_root/config/environments/in_memory.rb
46
50
  - generators/plugin_test_structure/templates/app_root/config/environments/sqlite.rb
47
51
  - generators/plugin_test_structure/templates/app_root/config/environments/postgresql.rb
48
- - generators/plugin_test_structure/templates/app_root/config/environments/in_memory.rb
52
+ - generators/plugin_test_structure/templates/app_root/config/environments/sqlite3.rb
53
+ - generators/plugin_test_structure/templates/app_root/config/environments/mysql.rb
49
54
  - generators/plugin_test_structure/templates/app_root/config/boot.rb
50
- - generators/plugin_test_structure/templates/app_root/config/routes.rb
51
55
  - generators/plugin_test_structure/templates/app_root/config/database.yml
52
- - generators/plugin_test_structure/templates/app_root/log
56
+ - generators/plugin_test_structure/templates/app_root/config/routes.rb
57
+ - generators/plugin_test_structure/templates/app_root/app
58
+ - generators/plugin_test_structure/templates/app_root/app/controllers
59
+ - generators/plugin_test_structure/templates/app_root/app/controllers/application.rb
53
60
  - generators/plugin_test_structure/plugin_test_structure_generator.rb
54
61
  - generators/plugin_test_structure/USAGE
55
- - generators/plugin_test_migration
56
- - generators/plugin_test_migration/templates
57
- - generators/plugin_test_migration/templates/migration.rb
58
- - generators/plugin_test_migration/plugin_test_migration_generator.rb
59
- - generators/plugin_test_migration/USAGE
60
62
  - generators/plugin_test_controller
61
63
  - generators/plugin_test_controller/templates
62
- - generators/plugin_test_controller/templates/controller.rb
63
64
  - generators/plugin_test_controller/templates/view.html.erb
65
+ - generators/plugin_test_controller/templates/controller.rb
64
66
  - generators/plugin_test_controller/plugin_test_controller_generator.rb
65
67
  - generators/plugin_test_controller/USAGE
66
- - generators/plugin_test_model
67
- - generators/plugin_test_model/plugin_test_model_generator.rb
68
- - generators/plugin_test_model/templates
69
- - generators/plugin_test_model/templates/model.rb
70
- - generators/plugin_test_model/templates/fixtures.yml
71
- - generators/plugin_test_model/templates/migration.rb
72
- - generators/plugin_test_model/USAGE
68
+ - generators/plugin_test_migration
69
+ - generators/plugin_test_migration/templates
70
+ - generators/plugin_test_migration/templates/migration.rb
71
+ - generators/plugin_test_migration/USAGE
72
+ - generators/plugin_test_migration/plugin_test_migration_generator.rb
73
73
  - lib/plugin_test_helper.rb
74
74
  - lib/plugin_test_helper
75
- - lib/plugin_test_helper/console_with_fixtures.rb
76
75
  - lib/plugin_test_helper/plugin_locator.rb
77
76
  - lib/plugin_test_helper/extensions
78
77
  - lib/plugin_test_helper/extensions/initializer.rb
79
78
  - lib/plugin_test_helper/generator.rb
80
- - test/app_root
79
+ - lib/plugin_test_helper/console_with_fixtures.rb
81
80
  - test/fixtures
82
81
  - test/fixtures/people.yml
82
+ - test/test_helper.rb
83
83
  - test/functional
84
- - test/functional/plugin_test_helper_test.rb
85
84
  - test/functional/plugin_test_migration_generator_test.rb
86
- - test/functional/plugin_test_controller_generator_test.rb
85
+ - test/functional/plugin_test_structure_generator_test.rb
87
86
  - test/functional/plugin_test_model_generator_test.rb
87
+ - test/functional/plugin_test_helper_test.rb
88
88
  - test/functional/plugin_test_console_generator_test.rb
89
+ - test/functional/plugin_test_controller_generator_test.rb
89
90
  - test/functional/plugin_test_helper_generator_test.rb
90
- - test/functional/plugin_test_structure_generator_test.rb
91
- - test/test_helper.rb
92
91
  - test/app_roots
93
- - test/app_roots/with_model
94
- - test/app_roots/with_model/app
95
- - test/app_roots/with_model/app/models
96
- - test/app_roots/with_model/app/models/person.rb
97
- - test/app_roots/with_migration
98
- - test/app_roots/with_migration/app
99
- - test/app_roots/with_migration/app/models
100
- - test/app_roots/with_migration/app/models/person.rb
101
- - test/app_roots/with_migration/db
102
- - test/app_roots/with_migration/db/migrate
103
- - test/app_roots/with_migration/db/migrate/001_create_people.rb
104
- - test/app_roots/with_routes
105
- - test/app_roots/with_routes/config
106
- - test/app_roots/with_routes/config/routes.rb
92
+ - test/app_roots/empty
93
+ - test/app_roots/empty/empty
107
94
  - test/app_roots/with_fixtures
108
- - test/app_roots/with_fixtures/app
109
- - test/app_roots/with_fixtures/app/models
110
- - test/app_roots/with_fixtures/app/models/person.rb
111
95
  - test/app_roots/with_fixtures/db
112
96
  - test/app_roots/with_fixtures/db/migrate
113
97
  - test/app_roots/with_fixtures/db/migrate/001_create_people.rb
114
- - test/app_roots/with_helper
115
- - test/app_roots/with_helper/app
116
- - test/app_roots/with_helper/app/helpers
117
- - test/app_roots/with_helper/app/helpers/people_helper.rb
98
+ - test/app_roots/with_fixtures/app
99
+ - test/app_roots/with_fixtures/app/models
100
+ - test/app_roots/with_fixtures/app/models/person.rb
118
101
  - test/app_roots/with_controller
119
102
  - test/app_roots/with_controller/app
120
103
  - test/app_roots/with_controller/app/controllers
121
104
  - test/app_roots/with_controller/app/controllers/people_controller.rb
122
105
  - test/app_roots/with_custom_config
106
+ - test/app_roots/with_custom_config/config
107
+ - test/app_roots/with_custom_config/config/environment.rb
123
108
  - test/app_roots/with_custom_config/vendor
124
109
  - test/app_roots/with_custom_config/vendor/plugins
125
110
  - test/app_roots/with_custom_config/vendor/plugins/acts_as_foo
126
- - test/app_roots/with_custom_config/vendor/plugins/acts_as_foo/init.rb
127
111
  - test/app_roots/with_custom_config/vendor/plugins/acts_as_foo/lib
128
112
  - test/app_roots/with_custom_config/vendor/plugins/acts_as_foo/lib/acts_as_foo.rb
129
- - test/app_roots/with_custom_config/config
130
- - test/app_roots/with_custom_config/config/environment.rb
131
- - test/app_roots/empty
132
- - test/app_roots/empty/empty
113
+ - test/app_roots/with_custom_config/vendor/plugins/acts_as_foo/init.rb
114
+ - test/app_roots/with_routes
115
+ - test/app_roots/with_routes/config
116
+ - test/app_roots/with_routes/config/routes.rb
117
+ - test/app_roots/with_helper
118
+ - test/app_roots/with_helper/app
119
+ - test/app_roots/with_helper/app/helpers
120
+ - test/app_roots/with_helper/app/helpers/people_helper.rb
133
121
  - test/app_roots/with_custom_application_controller
134
122
  - test/app_roots/with_custom_application_controller/app
135
123
  - test/app_roots/with_custom_application_controller/app/controllers
136
124
  - test/app_roots/with_custom_application_controller/app/controllers/application.rb
125
+ - test/app_roots/with_model
126
+ - test/app_roots/with_model/app
127
+ - test/app_roots/with_model/app/models
128
+ - test/app_roots/with_model/app/models/person.rb
129
+ - test/app_roots/with_migration
130
+ - test/app_roots/with_migration/db
131
+ - test/app_roots/with_migration/db/migrate
132
+ - test/app_roots/with_migration/db/migrate/001_create_people.rb
133
+ - test/app_roots/with_migration/app
134
+ - test/app_roots/with_migration/app/models
135
+ - test/app_roots/with_migration/app/models/person.rb
137
136
  - test/unit
138
137
  - test/unit/plugin_locator_test.rb
139
138
  - CHANGELOG.rdoc
@@ -163,16 +162,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
162
  requirements: []
164
163
 
165
164
  rubyforge_project: pluginaweek
166
- rubygems_version: 1.1.1
165
+ rubygems_version: 1.2.0
167
166
  signing_key:
168
167
  specification_version: 2
169
168
  summary: Simplifies plugin testing by creating an isolated Rails environment that simulates its usage in a real application.
170
169
  test_files:
171
- - test/functional/plugin_test_helper_test.rb
172
170
  - test/functional/plugin_test_migration_generator_test.rb
173
- - test/functional/plugin_test_controller_generator_test.rb
171
+ - test/functional/plugin_test_structure_generator_test.rb
174
172
  - test/functional/plugin_test_model_generator_test.rb
173
+ - test/functional/plugin_test_helper_test.rb
175
174
  - test/functional/plugin_test_console_generator_test.rb
175
+ - test/functional/plugin_test_controller_generator_test.rb
176
176
  - test/functional/plugin_test_helper_generator_test.rb
177
- - test/functional/plugin_test_structure_generator_test.rb
178
177
  - test/unit/plugin_locator_test.rb