enginex 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,7 @@ require "rails/generators"
7
7
  require "rails/generators/rails/app/app_generator"
8
8
 
9
9
  class Enginex < Thor::Group
10
- VERSION = "0.6.0".freeze
10
+ VERSION = "0.6.1".freeze
11
11
 
12
12
  include Thor::Actions
13
13
  check_unknown_options!
@@ -3,6 +3,7 @@ ENV["RAILS_ENV"] = "test"
3
3
 
4
4
  require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
5
  require "rails/test_help"
6
+ require "rspec/rails"
6
7
 
7
8
  ActionMailer::Base.delivery_method = :test
8
9
  ActionMailer::Base.perform_deliveries = true
@@ -10,11 +11,15 @@ ActionMailer::Base.default_url_options[:host] = "test.com"
10
11
 
11
12
  Rails.backtrace_cleaner.remove_silencers!
12
13
 
14
+ # Configure capybara for integration testing
13
15
  require "capybara/rails"
14
- Capybara.default_driver = :rack_test
16
+ Capybara.default_driver = :rack_test
17
+ Capybara.default_selector = :css
15
18
 
16
- require 'rspec/rails'
19
+ # Run any available migration
20
+ ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)
17
21
 
22
+ # Load support files
18
23
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
19
24
 
20
25
  Rspec.configure do |config|
@@ -10,8 +10,13 @@ ActionMailer::Base.default_url_options[:host] = "test.com"
10
10
 
11
11
  Rails.backtrace_cleaner.remove_silencers!
12
12
 
13
+ # Configure capybara for integration testing
13
14
  require "capybara/rails"
14
15
  Capybara.default_driver = :rack_test
15
16
  Capybara.default_selector = :css
16
17
 
18
+ # Run any available migration
19
+ ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)
20
+
21
+ # Load support files
17
22
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
@@ -12,8 +12,8 @@ class EnginexTest < ActiveSupport::TestCase
12
12
  assert_file "lib/demo_engine.rb", /module DemoEngine\nend/
13
13
 
14
14
  # Vendored Rails
15
+ assert_file "test/dummy/config/boot.rb"
15
16
  assert_file "test/dummy/config/application.rb"
16
- assert_file "test/dummy/config/environments/test.rb", /ActionDispatch::ShowExceptions/
17
17
  end
18
18
  end
19
19
 
@@ -25,6 +25,7 @@ class EnginexTest < ActiveSupport::TestCase
25
25
 
26
26
  assert_file "test/demo_engine_test.rb", /assert_kind_of Module, DemoEngine/
27
27
  assert_file "test/integration/navigation_test.rb", /assert_kind_of Dummy::Application, Rails.application/
28
+ assert_file "test/support/integration_case.rb", /class ActiveSupport::IntegrationCase/
28
29
  end
29
30
  end
30
31
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 6
8
- - 0
9
- version: 0.6.0
8
+ - 1
9
+ version: 0.6.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - "Jos\xC3\xA9 Valim"
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-23 00:00:00 +02:00
17
+ date: 2010-04-24 00:00:00 +02:00
18
18
  default_executable: enginex
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency