edge_rider 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +1 -2
  3. data/.ruby-version +1 -1
  4. data/.travis.yml +61 -10
  5. data/README.md +7 -8
  6. data/Rakefile +5 -61
  7. data/edge_rider.gemspec +2 -3
  8. data/gemfiles/Gemfile.2.3.mysql2 +16 -0
  9. data/gemfiles/Gemfile.2.3.mysql2.lock +37 -0
  10. data/gemfiles/Gemfile.3.2.mysql2 +16 -0
  11. data/gemfiles/Gemfile.3.2.mysql2.lock +62 -0
  12. data/gemfiles/Gemfile.4.2.mysql2 +15 -0
  13. data/gemfiles/Gemfile.4.2.mysql2.lock +66 -0
  14. data/gemfiles/Gemfile.4.2.pg +15 -0
  15. data/gemfiles/Gemfile.4.2.pg.lock +66 -0
  16. data/gemfiles/Gemfile.5.1.mysql2 +15 -0
  17. data/gemfiles/Gemfile.5.1.mysql2.lock +63 -0
  18. data/gemfiles/Gemfile.5.1.pg +15 -0
  19. data/gemfiles/Gemfile.5.1.pg.lock +63 -0
  20. data/lib/edge_rider.rb +2 -0
  21. data/lib/edge_rider/collect_column.rb +7 -1
  22. data/lib/edge_rider/collect_ids.rb +3 -3
  23. data/lib/edge_rider/development.rb +2 -15
  24. data/lib/edge_rider/util.rb +31 -2
  25. data/lib/edge_rider/version.rb +1 -1
  26. data/spec/{shared/spec/edge_rider → edge_rider}/collect_column_spec.rb +0 -0
  27. data/spec/{shared/spec/edge_rider → edge_rider}/collect_ids_spec.rb +2 -2
  28. data/spec/{shared/spec/edge_rider → edge_rider}/origin_class_spec.rb +0 -0
  29. data/spec/{shared/spec/edge_rider → edge_rider}/preload_associations_spec.rb +0 -0
  30. data/spec/{shared/spec/edge_rider → edge_rider}/scoped_spec.rb +2 -1
  31. data/spec/{shared/spec/edge_rider → edge_rider}/to_id_query_spec.rb +3 -3
  32. data/spec/{shared/spec/edge_rider → edge_rider}/to_sql_spec.rb +1 -1
  33. data/spec/{shared/spec/edge_rider → edge_rider}/traverse_association_spec.rb +0 -0
  34. data/spec/{shared/spec/edge_rider → edge_rider}/util_spec.rb +0 -0
  35. data/spec/spec_helper.rb +12 -0
  36. data/spec/support/database.rb +34 -0
  37. data/spec/{shared/app_root/config → support}/database.sample.yml +6 -2
  38. data/spec/support/database.travis.yml +9 -0
  39. data/spec/support/models.rb +92 -0
  40. metadata +60 -155
  41. data/spec/rails-2.3/.ruby-version +0 -1
  42. data/spec/rails-2.3/Gemfile +0 -17
  43. data/spec/rails-2.3/Gemfile.lock +0 -66
  44. data/spec/rails-2.3/Rakefile +0 -11
  45. data/spec/rails-2.3/app_root/config/boot.rb +0 -130
  46. data/spec/rails-2.3/app_root/config/environment.rb +0 -16
  47. data/spec/rails-2.3/app_root/config/environments/test.rb +0 -0
  48. data/spec/rails-2.3/app_root/config/initializers/fix_missing_source_file.rb +0 -1
  49. data/spec/rails-2.3/app_root/config/preinitializer.rb +0 -22
  50. data/spec/rails-2.3/app_root/config/routes.rb +0 -15
  51. data/spec/rails-2.3/app_root/log/.gitignore +0 -1
  52. data/spec/rails-2.3/rcov.opts +0 -2
  53. data/spec/rails-2.3/spec.opts +0 -5
  54. data/spec/rails-2.3/spec/spec_helper.rb +0 -25
  55. data/spec/rails-3.0/.rspec +0 -2
  56. data/spec/rails-3.0/.ruby-version +0 -1
  57. data/spec/rails-3.0/Gemfile +0 -12
  58. data/spec/rails-3.0/Gemfile.lock +0 -120
  59. data/spec/rails-3.0/Rakefile +0 -11
  60. data/spec/rails-3.0/app_root/.gitignore +0 -4
  61. data/spec/rails-3.0/app_root/config/application.rb +0 -33
  62. data/spec/rails-3.0/app_root/config/boot.rb +0 -15
  63. data/spec/rails-3.0/app_root/config/environment.rb +0 -7
  64. data/spec/rails-3.0/app_root/config/environments/test.rb +0 -37
  65. data/spec/rails-3.0/app_root/config/initializers/backtrace_silencers.rb +0 -9
  66. data/spec/rails-3.0/app_root/config/initializers/inflections.rb +0 -12
  67. data/spec/rails-3.0/app_root/config/initializers/mime_types.rb +0 -7
  68. data/spec/rails-3.0/app_root/config/initializers/secret_token.rb +0 -9
  69. data/spec/rails-3.0/app_root/config/initializers/session_store.rb +0 -10
  70. data/spec/rails-3.0/app_root/config/routes.rb +0 -5
  71. data/spec/rails-3.0/app_root/lib/tasks/.gitkeep +0 -0
  72. data/spec/rails-3.0/app_root/log/.gitkeep +0 -0
  73. data/spec/rails-3.0/app_root/script/rails +0 -6
  74. data/spec/rails-3.0/rcov.opts +0 -2
  75. data/spec/rails-3.0/spec/spec_helper.rb +0 -23
  76. data/spec/rails-3.2/.rspec +0 -2
  77. data/spec/rails-3.2/.ruby-version +0 -1
  78. data/spec/rails-3.2/Gemfile +0 -16
  79. data/spec/rails-3.2/Gemfile.lock +0 -135
  80. data/spec/rails-3.2/Rakefile +0 -12
  81. data/spec/rails-3.2/app_root/.gitignore +0 -4
  82. data/spec/rails-3.2/app_root/config/application.rb +0 -33
  83. data/spec/rails-3.2/app_root/config/boot.rb +0 -15
  84. data/spec/rails-3.2/app_root/config/environment.rb +0 -7
  85. data/spec/rails-3.2/app_root/config/environments/test.rb +0 -37
  86. data/spec/rails-3.2/app_root/config/initializers/backtrace_silencers.rb +0 -9
  87. data/spec/rails-3.2/app_root/config/initializers/inflections.rb +0 -12
  88. data/spec/rails-3.2/app_root/config/initializers/mime_types.rb +0 -7
  89. data/spec/rails-3.2/app_root/config/initializers/secret_token.rb +0 -9
  90. data/spec/rails-3.2/app_root/config/initializers/session_store.rb +0 -10
  91. data/spec/rails-3.2/app_root/config/routes.rb +0 -5
  92. data/spec/rails-3.2/app_root/log/.gitignore +0 -1
  93. data/spec/rails-3.2/rcov.opts +0 -2
  94. data/spec/rails-3.2/spec/spec_helper.rb +0 -25
  95. data/spec/rails-4.1/.rspec +0 -2
  96. data/spec/rails-4.1/.ruby-version +0 -1
  97. data/spec/rails-4.1/Gemfile +0 -17
  98. data/spec/rails-4.1/Gemfile.lock +0 -138
  99. data/spec/rails-4.1/Rakefile +0 -12
  100. data/spec/rails-4.1/app_root/.gitignore +0 -16
  101. data/spec/rails-4.1/app_root/bin/bundle +0 -3
  102. data/spec/rails-4.1/app_root/bin/rails +0 -8
  103. data/spec/rails-4.1/app_root/bin/rake +0 -8
  104. data/spec/rails-4.1/app_root/bin/spring +0 -18
  105. data/spec/rails-4.1/app_root/config/application.rb +0 -28
  106. data/spec/rails-4.1/app_root/config/boot.rb +0 -4
  107. data/spec/rails-4.1/app_root/config/environment.rb +0 -5
  108. data/spec/rails-4.1/app_root/config/environments/development.rb +0 -37
  109. data/spec/rails-4.1/app_root/config/environments/production.rb +0 -83
  110. data/spec/rails-4.1/app_root/config/environments/test.rb +0 -39
  111. data/spec/rails-4.1/app_root/config/initializers/backtrace_silencers.rb +0 -7
  112. data/spec/rails-4.1/app_root/config/initializers/cookies_serializer.rb +0 -3
  113. data/spec/rails-4.1/app_root/config/initializers/filter_parameter_logging.rb +0 -4
  114. data/spec/rails-4.1/app_root/config/initializers/inflections.rb +0 -16
  115. data/spec/rails-4.1/app_root/config/initializers/mime_types.rb +0 -4
  116. data/spec/rails-4.1/app_root/config/initializers/session_store.rb +0 -3
  117. data/spec/rails-4.1/app_root/config/initializers/wrap_parameters.rb +0 -14
  118. data/spec/rails-4.1/app_root/config/routes.rb +0 -3
  119. data/spec/rails-4.1/app_root/config/secrets.yml +0 -22
  120. data/spec/rails-4.1/rcov.opts +0 -2
  121. data/spec/rails-4.1/spec/spec_helper.rb +0 -31
  122. data/spec/shared/app_root/app/controllers/application_controller.rb +0 -5
  123. data/spec/shared/app_root/app/models/allow_setting_id_on_create.rb +0 -21
  124. data/spec/shared/app_root/app/models/forum.rb +0 -11
  125. data/spec/shared/app_root/app/models/post.rb +0 -11
  126. data/spec/shared/app_root/app/models/profile.rb +0 -8
  127. data/spec/shared/app_root/app/models/topic.rb +0 -14
  128. data/spec/shared/app_root/app/models/user.rb +0 -13
  129. data/spec/shared/app_root/config/database.travis_ci.yml +0 -6
  130. data/spec/shared/app_root/db/migrate/001_create_test_tables.rb +0 -45
@@ -1,15 +0,0 @@
1
- # encoding: utf-8
2
-
3
- require 'rubygems'
4
-
5
- # Set up gems listed in the Gemfile.
6
- gemfile = File.expand_path('../../Gemfile', __FILE__)
7
- begin
8
- ENV['BUNDLE_GEMFILE'] = gemfile
9
- require 'bundler'
10
- Bundler.setup
11
- rescue Bundler::GemNotFound => e
12
- STDERR.puts e.message
13
- STDERR.puts "Try running `bundle install`."
14
- exit!
15
- end if File.exist?(gemfile)
@@ -1,7 +0,0 @@
1
- # encoding: utf-8
2
-
3
- # Load the rails application
4
- require File.expand_path('../application', __FILE__)
5
-
6
- # Initialize the rails application
7
- SpecApp::Application.initialize!
@@ -1,37 +0,0 @@
1
- # encoding: utf-8
2
-
3
- SpecApp::Application.configure do
4
- # Settings specified here will take precedence over those in config/application.rb
5
-
6
- # The test environment is used exclusively to run your application's
7
- # test suite. You never need to work with it otherwise. Remember that
8
- # your test database is "scratch space" for the test suite and is wiped
9
- # and recreated between test runs. Don't rely on the data there!
10
- config.cache_classes = true
11
-
12
- # Log error messages when you accidentally call methods on nil.
13
- config.whiny_nils = true
14
-
15
- # Show full error reports and disable caching
16
- config.consider_all_requests_local = true
17
- config.action_controller.perform_caching = false
18
-
19
- # Raise exceptions instead of rendering exception templates
20
- config.action_dispatch.show_exceptions = false
21
-
22
- # Disable request forgery protection in test environment
23
- config.action_controller.allow_forgery_protection = false
24
-
25
- # Tell Action Mailer not to deliver emails to the real world.
26
- # The :test delivery method accumulates sent emails in the
27
- # ActionMailer::Base.deliveries array.
28
- config.action_mailer.delivery_method = :test
29
-
30
- # Use SQL instead of Active Record's schema dumper when creating the test database.
31
- # This is necessary if your schema can't be completely dumped by the schema dumper,
32
- # like if you have constraints or database-specific column types
33
- # config.active_record.schema_format = :sql
34
-
35
- # Print deprecation notices to the stderr
36
- config.active_support.deprecation = :stderr
37
- end
@@ -1,9 +0,0 @@
1
- # encoding: utf-8
2
-
3
- # Be sure to restart your server when you modify this file.
4
-
5
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
6
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
7
-
8
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
9
- # Rails.backtrace_cleaner.remove_silencers!
@@ -1,12 +0,0 @@
1
- # encoding: utf-8
2
-
3
- # Be sure to restart your server when you modify this file.
4
-
5
- # Add new inflection rules using the following format
6
- # (all these examples are active by default):
7
- # ActiveSupport::Inflector.inflections do |inflect|
8
- # inflect.plural /^(ox)$/i, '\1en'
9
- # inflect.singular /^(ox)en/i, '\1'
10
- # inflect.irregular 'person', 'people'
11
- # inflect.uncountable %w( fish sheep )
12
- # end
@@ -1,7 +0,0 @@
1
- # encoding: utf-8
2
-
3
- # Be sure to restart your server when you modify this file.
4
-
5
- # Add new mime types for use in respond_to blocks:
6
- # Mime::Type.register "text/richtext", :rtf
7
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,9 +0,0 @@
1
- # encoding: utf-8
2
-
3
- # Be sure to restart your server when you modify this file.
4
-
5
- # Your secret key for verifying the integrity of signed cookies.
6
- # If you change this key, all old signed cookies will become invalid!
7
- # Make sure the secret is at least 30 characters and all random,
8
- # no regular words or you'll be exposed to dictionary attacks.
9
- SpecApp::Application.config.secret_token = 'cb014a08a45243e7143f31e04774c342c1fba329fd594ae1a480d8283b1a851f425dc08044311fb4be6d000b6e6681de7c76d19148419a5ffa0a9f84556d3b33'
@@ -1,10 +0,0 @@
1
- # encoding: utf-8
2
-
3
- # Be sure to restart your server when you modify this file.
4
-
5
- SpecApp::Application.config.session_store :cookie_store, :key => '_app_root_session'
6
-
7
- # Use the database for sessions instead of the cookie-based default,
8
- # which shouldn't be used to store highly confidential information
9
- # (create the session table with "rails generate session_migration")
10
- # HasDefaultSpecApp::Application.config.session_store :active_record_store
@@ -1,5 +0,0 @@
1
- # encoding: utf-8
2
-
3
- SpecApp::Application.routes.draw do
4
- match ':controller(/:action(/:id(.:format)))'
5
- end
File without changes
File without changes
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby1.8
2
- # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
-
4
- APP_PATH = File.expand_path('../../config/application', __FILE__)
5
- require File.expand_path('../../config/boot', __FILE__)
6
- require 'rails/commands'
@@ -1,2 +0,0 @@
1
- --exclude "spec/*,gems/*"
2
- --rails
@@ -1,23 +0,0 @@
1
- # encoding: utf-8
2
-
3
- $: << File.join(File.dirname(__FILE__), "/../../lib" )
4
-
5
- ENV['RAILS_ENV'] = 'test'
6
- ENV['RAILS_ROOT'] = 'app_root'
7
-
8
- # Load the Rails environment and testing framework
9
- require "#{File.dirname(__FILE__)}/../app_root/config/environment"
10
- require 'rspec/rails'
11
- require 'edge_rider/development'
12
- DatabaseCleaner.strategy = :truncation
13
-
14
- # Run the migrations
15
- EdgeRider::Development.migrate_test_database
16
-
17
- RSpec.configure do |config|
18
- config.use_transactional_fixtures = false
19
- config.use_instantiated_fixtures = false
20
- config.before(:each) do
21
- DatabaseCleaner.clean
22
- end
23
- end
@@ -1,2 +0,0 @@
1
- --colour
2
- --format progress
@@ -1 +0,0 @@
1
- 1.9.3
@@ -1,16 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'rails', '~>3.2.0'
4
- gem 'rspec'
5
- gem 'rspec-rails'
6
- gem 'mysql2'
7
- gem 'rspec_candy'
8
- gem 'database_cleaner', '=1.0.1'
9
- gem 'andand'
10
- gem 'has_defaults'
11
-
12
- gem 'edge_rider', :path => '../..'
13
-
14
- group :development do
15
- gem 'ruby-debug', :platforms => :ruby_18
16
- end
@@ -1,135 +0,0 @@
1
- PATH
2
- remote: ../..
3
- specs:
4
- edge_rider (0.3.0)
5
- activerecord
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actionmailer (3.2.14)
11
- actionpack (= 3.2.14)
12
- mail (~> 2.5.4)
13
- actionpack (3.2.14)
14
- activemodel (= 3.2.14)
15
- activesupport (= 3.2.14)
16
- builder (~> 3.0.0)
17
- erubis (~> 2.7.0)
18
- journey (~> 1.0.4)
19
- rack (~> 1.4.5)
20
- rack-cache (~> 1.2)
21
- rack-test (~> 0.6.1)
22
- sprockets (~> 2.2.1)
23
- activemodel (3.2.14)
24
- activesupport (= 3.2.14)
25
- builder (~> 3.0.0)
26
- activerecord (3.2.14)
27
- activemodel (= 3.2.14)
28
- activesupport (= 3.2.14)
29
- arel (~> 3.0.2)
30
- tzinfo (~> 0.3.29)
31
- activeresource (3.2.14)
32
- activemodel (= 3.2.14)
33
- activesupport (= 3.2.14)
34
- activesupport (3.2.14)
35
- i18n (~> 0.6, >= 0.6.4)
36
- multi_json (~> 1.0)
37
- andand (1.3.3)
38
- arel (3.0.2)
39
- builder (3.0.4)
40
- columnize (0.3.6)
41
- database_cleaner (1.0.1)
42
- diff-lcs (1.2.4)
43
- erubis (2.7.0)
44
- has_defaults (0.4.1)
45
- activerecord
46
- hike (1.2.3)
47
- i18n (0.6.5)
48
- journey (1.0.4)
49
- json (1.8.0)
50
- linecache (0.46)
51
- rbx-require-relative (> 0.0.4)
52
- mail (2.5.4)
53
- mime-types (~> 1.16)
54
- treetop (~> 1.4.8)
55
- mime-types (1.25)
56
- multi_json (1.8.0)
57
- mysql2 (0.3.13)
58
- polyglot (0.3.3)
59
- rack (1.4.5)
60
- rack-cache (1.2)
61
- rack (>= 0.4)
62
- rack-ssl (1.3.3)
63
- rack
64
- rack-test (0.6.2)
65
- rack (>= 1.0)
66
- rails (3.2.14)
67
- actionmailer (= 3.2.14)
68
- actionpack (= 3.2.14)
69
- activerecord (= 3.2.14)
70
- activeresource (= 3.2.14)
71
- activesupport (= 3.2.14)
72
- bundler (~> 1.0)
73
- railties (= 3.2.14)
74
- railties (3.2.14)
75
- actionpack (= 3.2.14)
76
- activesupport (= 3.2.14)
77
- rack-ssl (~> 1.3.2)
78
- rake (>= 0.8.7)
79
- rdoc (~> 3.4)
80
- thor (>= 0.14.6, < 2.0)
81
- rake (10.1.0)
82
- rbx-require-relative (0.0.9)
83
- rdoc (3.12.2)
84
- json (~> 1.4)
85
- rspec (2.14.1)
86
- rspec-core (~> 2.14.0)
87
- rspec-expectations (~> 2.14.0)
88
- rspec-mocks (~> 2.14.0)
89
- rspec-core (2.14.5)
90
- rspec-expectations (2.14.2)
91
- diff-lcs (>= 1.1.3, < 2.0)
92
- rspec-mocks (2.14.3)
93
- rspec-rails (2.14.0)
94
- actionpack (>= 3.0)
95
- activesupport (>= 3.0)
96
- railties (>= 3.0)
97
- rspec-core (~> 2.14.0)
98
- rspec-expectations (~> 2.14.0)
99
- rspec-mocks (~> 2.14.0)
100
- rspec_candy (0.3.0)
101
- rspec
102
- sneaky-save
103
- ruby-debug (0.10.4)
104
- columnize (>= 0.1)
105
- ruby-debug-base (~> 0.10.4.0)
106
- ruby-debug-base (0.10.4)
107
- linecache (>= 0.3)
108
- sneaky-save (0.0.4)
109
- activerecord (>= 3.2.0)
110
- sprockets (2.2.2)
111
- hike (~> 1.2)
112
- multi_json (~> 1.0)
113
- rack (~> 1.0)
114
- tilt (~> 1.1, != 1.3.0)
115
- thor (0.18.1)
116
- tilt (1.4.1)
117
- treetop (1.4.15)
118
- polyglot
119
- polyglot (>= 0.3.1)
120
- tzinfo (0.3.37)
121
-
122
- PLATFORMS
123
- ruby
124
-
125
- DEPENDENCIES
126
- andand
127
- database_cleaner (= 1.0.1)
128
- edge_rider!
129
- has_defaults
130
- mysql2
131
- rails (~> 3.2.0)
132
- rspec
133
- rspec-rails
134
- rspec_candy
135
- ruby-debug
@@ -1,12 +0,0 @@
1
- require 'rake'
2
- require 'rspec/core/rake_task'
3
-
4
- desc 'Default: Run all specs for a specific rails version.'
5
- task :default => :spec
6
-
7
- desc "Run all specs for a specific rails version"
8
- RSpec::Core::RakeTask.new(:spec) do |t|
9
- t.pattern = defined?(SPEC) ? SPEC : ['**/*_spec.rb', '../shared/spec/**/*_spec.rb']
10
- t.verbose = false
11
- t.rspec_opts = '-b'
12
- end
@@ -1,4 +0,0 @@
1
- .bundle
2
- db/*.sqlite3
3
- log/*.log
4
- tmp/**/*
@@ -1,33 +0,0 @@
1
- # encoding: utf-8
2
-
3
- require File.expand_path('../boot', __FILE__)
4
-
5
- require 'rails/all'
6
-
7
- # If you have a Gemfile, require the gems listed there, including any gems
8
- # you've limited to :test, :development, or :production.
9
- Bundler.require(:default, Rails.env) if defined?(Bundler)
10
-
11
- module SpecApp
12
- class Application < Rails::Application
13
- config.encoding = "utf-8"
14
-
15
- config.cache_classes = true
16
- config.whiny_nils = true
17
-
18
- config.consider_all_requests_local = true
19
- config.action_controller.perform_caching = false
20
-
21
- config.action_dispatch.show_exceptions = false
22
-
23
- config.action_controller.allow_forgery_protection = false
24
-
25
- config.action_mailer.delivery_method = :test
26
-
27
- config.active_support.deprecation = :stderr
28
-
29
- config.root = File.expand_path('../..', __FILE__)
30
-
31
- # railties.plugins << Rails::Plugin.new(File.expand_path('../../../../..', __FILE__))
32
- end
33
- end
@@ -1,15 +0,0 @@
1
- # encoding: utf-8
2
-
3
- require 'rubygems'
4
-
5
- # Set up gems listed in the Gemfile.
6
- gemfile = File.expand_path('../../Gemfile', __FILE__)
7
- begin
8
- ENV['BUNDLE_GEMFILE'] = gemfile
9
- require 'bundler'
10
- Bundler.setup
11
- rescue Bundler::GemNotFound => e
12
- STDERR.puts e.message
13
- STDERR.puts "Try running `bundle install`."
14
- exit!
15
- end if File.exist?(gemfile)
@@ -1,7 +0,0 @@
1
- # encoding: utf-8
2
-
3
- # Load the rails application
4
- require File.expand_path('../application', __FILE__)
5
-
6
- # Initialize the rails application
7
- SpecApp::Application.initialize!
@@ -1,37 +0,0 @@
1
- # encoding: utf-8
2
-
3
- SpecApp::Application.configure do
4
- # Settings specified here will take precedence over those in config/application.rb
5
-
6
- # The test environment is used exclusively to run your application's
7
- # test suite. You never need to work with it otherwise. Remember that
8
- # your test database is "scratch space" for the test suite and is wiped
9
- # and recreated between test runs. Don't rely on the data there!
10
- config.cache_classes = true
11
-
12
- # Log error messages when you accidentally call methods on nil.
13
- config.whiny_nils = true
14
-
15
- # Show full error reports and disable caching
16
- config.consider_all_requests_local = true
17
- config.action_controller.perform_caching = false
18
-
19
- # Raise exceptions instead of rendering exception templates
20
- config.action_dispatch.show_exceptions = false
21
-
22
- # Disable request forgery protection in test environment
23
- config.action_controller.allow_forgery_protection = false
24
-
25
- # Tell Action Mailer not to deliver emails to the real world.
26
- # The :test delivery method accumulates sent emails in the
27
- # ActionMailer::Base.deliveries array.
28
- config.action_mailer.delivery_method = :test
29
-
30
- # Use SQL instead of Active Record's schema dumper when creating the test database.
31
- # This is necessary if your schema can't be completely dumped by the schema dumper,
32
- # like if you have constraints or database-specific column types
33
- # config.active_record.schema_format = :sql
34
-
35
- # Print deprecation notices to the stderr
36
- config.active_support.deprecation = :stderr
37
- end