sitepress-rails 0.1.20 → 0.1.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sitepress/rails.rb +1 -1
- data/lib/sitepress/rails_configuration.rb +2 -2
- data/spec/dummy/log/production.log +56 -0
- data/spec/dummy/log/test.log +4909 -0
- data/spec/sitepress-rails_spec.rb +3 -0
- data/spec/sitepress/rails_configuration_spec.rb +14 -0
- metadata +7 -7
@@ -11,6 +11,9 @@ describe Sitepress do
|
|
11
11
|
it "has Rails.application as parent engine" do
|
12
12
|
expect(subject.parent_engine).to eql(Rails.application)
|
13
13
|
end
|
14
|
+
it "has Rails.application as parent engine" do
|
15
|
+
expect(subject.cache_resources).to be true
|
16
|
+
end
|
14
17
|
it "has routes enabled by default" do
|
15
18
|
expect(subject.routes).to be true
|
16
19
|
end
|
@@ -7,4 +7,18 @@ describe Sitepress::RailsConfiguration do
|
|
7
7
|
expect(subject.site.resources.size).to eql(2)
|
8
8
|
end
|
9
9
|
end
|
10
|
+
context "#cache_resources" do
|
11
|
+
context "Rails.configuration.cache_classes=true" do
|
12
|
+
before { Rails.configuration.cache_classes = true }
|
13
|
+
it "is true" do
|
14
|
+
expect(subject.cache_resources).to eql(true)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
context "Rails.configuration.cache_classes=false" do
|
18
|
+
before { Rails.configuration.cache_classes = false }
|
19
|
+
it "is false" do
|
20
|
+
expect(subject.cache_resources).to eql(false)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
10
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sitepress-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brad Gessler
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sqlite3
|
@@ -44,28 +44,28 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 4.
|
47
|
+
version: '4.0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 4.
|
54
|
+
version: '4.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name: sitepress
|
56
|
+
name: sitepress-core
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.1.
|
61
|
+
version: 0.1.21
|
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: 0.1.
|
68
|
+
version: 0.1.21
|
69
69
|
description:
|
70
70
|
email:
|
71
71
|
- bradgessler@gmail.com
|