sitepress-rails 2.0.0.beta10 → 2.0.0.beta11

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,9 +4,18 @@ require "sitepress-rails"
4
4
  describe "Sitepress.configuration" do
5
5
  subject { Sitepress.configuration }
6
6
  let(:app) { Dummy::Application.new }
7
- let(:cache_classes) { false }
8
7
  before do
9
- app.config.eager_load = cache_classes # WTF?
8
+ # Why set to true? Because according to Rails:
9
+ #
10
+ # .config.eager_load is set to nil. Please update your config/environments/*.rb files accordingly:
11
+ #
12
+ # * development - set it to false
13
+ # * test - set it to false (unless you use a tool that preloads your test environment)
14
+ # * production - set it to true
15
+ #
16
+ # The view initializer for haml runs in a `ActiveSupport.on_load(:action_view)`, which requires
17
+ # `eager_load = true` to test.
18
+ app.config.eager_load = true
10
19
  end
11
20
  it "has Rails.application as parent engine" do
12
21
  app.initialize!
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sitepress-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta10
4
+ version: 2.0.0.beta11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 2.0.0.beta10
61
+ version: 2.0.0.beta11
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 2.0.0.beta10
68
+ version: 2.0.0.beta11
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: railties
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -186,7 +186,6 @@ files:
186
186
  - spec/dummy/config/routes.rb
187
187
  - spec/dummy/config/secrets.yml
188
188
  - spec/dummy/config/spring.rb
189
- - spec/dummy/db/test.sqlite3
190
189
  - spec/dummy/log/production.log
191
190
  - spec/dummy/log/test.log
192
191
  - spec/dummy/public/404.html
@@ -282,7 +281,6 @@ test_files:
282
281
  - spec/dummy/config/secrets.yml
283
282
  - spec/dummy/config/spring.rb
284
283
  - spec/dummy/config.ru
285
- - spec/dummy/db/test.sqlite3
286
284
  - spec/dummy/log/production.log
287
285
  - spec/dummy/log/test.log
288
286
  - spec/dummy/public/404.html
File without changes