locomotivecms_steam 1.0.0.pre.beta.3 → 1.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/Gemfile +1 -1
  4. data/Gemfile.lock +16 -11
  5. data/Rakefile +14 -2
  6. data/lib/locomotive/steam/adapters/filesystem/yaml_loader.rb +13 -3
  7. data/lib/locomotive/steam/adapters/filesystem/yaml_loaders/content_type.rb +10 -5
  8. data/lib/locomotive/steam/adapters/filesystem/yaml_loaders/page.rb +9 -0
  9. data/lib/locomotive/steam/adapters/filesystem.rb +3 -1
  10. data/lib/locomotive/steam/adapters/memory.rb +6 -1
  11. data/lib/locomotive/steam/adapters/mongodb.rb +3 -1
  12. data/lib/locomotive/steam/decorators/i18n_decorator.rb +16 -0
  13. data/lib/locomotive/steam/entities/content_entry.rb +23 -2
  14. data/lib/locomotive/steam/entities/content_type.rb +9 -0
  15. data/lib/locomotive/steam/entities/content_type_field.rb +9 -0
  16. data/lib/locomotive/steam/entities/editable_element.rb +6 -2
  17. data/lib/locomotive/steam/entities/page.rb +4 -0
  18. data/lib/locomotive/steam/entities/site.rb +11 -3
  19. data/lib/locomotive/steam/liquid/drops/base.rb +4 -0
  20. data/lib/locomotive/steam/liquid/drops/content_entry.rb +23 -0
  21. data/lib/locomotive/steam/liquid/drops/content_entry_collection.rb +7 -1
  22. data/lib/locomotive/steam/liquid/drops/content_types.rb +6 -10
  23. data/lib/locomotive/steam/liquid/filters/json.rb +21 -14
  24. data/lib/locomotive/steam/liquid/tags/editable/base.rb +14 -2
  25. data/lib/locomotive/steam/liquid/tags/editable/text.rb +15 -1
  26. data/lib/locomotive/steam/liquid/tags/google_analytics.rb +8 -12
  27. data/lib/locomotive/steam/middlewares/default_env.rb +3 -1
  28. data/lib/locomotive/steam/middlewares/entry_submission.rb +1 -1
  29. data/lib/locomotive/steam/middlewares/favicon.rb +3 -1
  30. data/lib/locomotive/steam/middlewares/helpers.rb +2 -2
  31. data/lib/locomotive/steam/middlewares/logging.rb +3 -1
  32. data/lib/locomotive/steam/middlewares/page.rb +2 -0
  33. data/lib/locomotive/steam/middlewares/path.rb +4 -2
  34. data/lib/locomotive/steam/middlewares/renderer.rb +1 -1
  35. data/lib/locomotive/steam/middlewares/robots.rb +3 -1
  36. data/lib/locomotive/steam/middlewares/sitemap.rb +1 -1
  37. data/lib/locomotive/steam/middlewares/{threadsafe.rb → thread_safe.rb} +2 -1
  38. data/lib/locomotive/steam/middlewares.rb +1 -1
  39. data/lib/locomotive/steam/models/concerns/to_json.rb +31 -0
  40. data/lib/locomotive/steam/models/entity.rb +1 -0
  41. data/lib/locomotive/steam/models/i18n_field.rb +11 -0
  42. data/lib/locomotive/steam/models.rb +1 -0
  43. data/lib/locomotive/steam/repositories.rb +3 -1
  44. data/lib/locomotive/steam/server.rb +1 -1
  45. data/lib/locomotive/steam/services/asset_host_service.rb +3 -1
  46. data/lib/locomotive/steam/services/csrf_protection_service.rb +3 -1
  47. data/lib/locomotive/steam/services/editable_element_service.rb +3 -1
  48. data/lib/locomotive/steam/services/entry_submission_service.rb +4 -2
  49. data/lib/locomotive/steam/services/image_resizer_service.rb +3 -1
  50. data/lib/locomotive/steam/services/liquid_parser_service.rb +3 -1
  51. data/lib/locomotive/steam/services/page_finder_service.rb +3 -1
  52. data/lib/locomotive/steam/services/site_finder_service.rb +3 -1
  53. data/lib/locomotive/steam/services/snippet_finder_service.rb +3 -1
  54. data/lib/locomotive/steam/services/theme_asset_url_service.rb +3 -1
  55. data/lib/locomotive/steam/services/translator_service.rb +3 -1
  56. data/lib/locomotive/steam/services/url_builder_service.rb +3 -1
  57. data/lib/locomotive/steam/services.rb +4 -2
  58. data/lib/locomotive/steam/version.rb +1 -1
  59. data/locomotivecms_steam.gemspec +3 -3
  60. data/spec/fixtures/default/README +11 -0
  61. data/spec/fixtures/default/app/views/pages/layouts/simple.liquid +14 -0
  62. data/spec/fixtures/default/config/deploy.yml +4 -3
  63. data/spec/fixtures/default/config/site.yml +1 -1
  64. data/spec/fixtures/mongodb/locomotive_accounts.bson +0 -0
  65. data/spec/fixtures/mongodb/locomotive_accounts.metadata.json +1 -1
  66. data/spec/fixtures/mongodb/locomotive_activities.bson +0 -0
  67. data/spec/fixtures/mongodb/locomotive_activities.metadata.json +1 -0
  68. data/spec/fixtures/mongodb/locomotive_content_assets.bson +0 -0
  69. data/spec/fixtures/mongodb/locomotive_content_assets.metadata.json +1 -1
  70. data/spec/fixtures/mongodb/locomotive_content_entries.bson +0 -0
  71. data/spec/fixtures/mongodb/locomotive_content_entries.metadata.json +1 -1
  72. data/spec/fixtures/mongodb/locomotive_content_types.bson +0 -0
  73. data/spec/fixtures/mongodb/locomotive_content_types.metadata.json +1 -1
  74. data/spec/fixtures/mongodb/locomotive_pages.bson +0 -0
  75. data/spec/fixtures/mongodb/locomotive_pages.metadata.json +1 -1
  76. data/spec/fixtures/mongodb/locomotive_sites.bson +0 -0
  77. data/spec/fixtures/mongodb/locomotive_sites.metadata.json +1 -1
  78. data/spec/fixtures/mongodb/locomotive_snippets.bson +0 -0
  79. data/spec/fixtures/mongodb/locomotive_snippets.metadata.json +1 -1
  80. data/spec/fixtures/mongodb/locomotive_theme_assets.bson +0 -0
  81. data/spec/fixtures/mongodb/locomotive_theme_assets.metadata.json +1 -1
  82. data/spec/fixtures/mongodb/locomotive_translations.bson +0 -0
  83. data/spec/fixtures/mongodb/locomotive_translations.metadata.json +1 -1
  84. data/spec/fixtures/mongodb/system.indexes.bson +0 -0
  85. data/spec/integration/liquid/tags/paginate_spec.rb +1 -1
  86. data/spec/integration/repositories/content_entry_repository_spec.rb +2 -2
  87. data/spec/integration/repositories/content_type_repository_spec.rb +1 -1
  88. data/spec/integration/repositories/page_repository_spec.rb +3 -3
  89. data/spec/integration/repositories/site_repository_spec.rb +3 -3
  90. data/spec/integration/repositories/snippet_repository_spec.rb +1 -1
  91. data/spec/integration/repositories/theme_asset_repository_spec.rb +3 -3
  92. data/spec/integration/repositories/translation_repository_spec.rb +1 -1
  93. data/spec/integration/server/contact_form_spec.rb +1 -1
  94. data/spec/integration/server/sitemap_spec.rb +17 -1
  95. data/spec/support/helpers.rb +4 -0
  96. data/spec/support/liquid.rb +5 -1
  97. data/spec/unit/adapters/filesystem/yaml_loaders/content_type_spec.rb +1 -0
  98. data/spec/unit/adapters/filesystem/yaml_loaders/page_spec.rb +7 -4
  99. data/spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb +1 -1
  100. data/spec/unit/decorators/i18n_decorator_spec.rb +9 -0
  101. data/spec/unit/entities/content_entry_spec.rb +29 -0
  102. data/spec/unit/entities/content_type_field_spec.rb +41 -0
  103. data/spec/unit/entities/content_type_spec.rb +10 -0
  104. data/spec/unit/entities/page_spec.rb +24 -0
  105. data/spec/unit/entities/site_spec.rb +44 -6
  106. data/spec/unit/liquid/drops/content_entry_spec.rb +16 -0
  107. data/spec/unit/liquid/filters/json_spec.rb +26 -3
  108. data/spec/unit/liquid/tags/editable/control_spec.rb +1 -1
  109. data/spec/unit/liquid/tags/editable/file_spec.rb +1 -1
  110. data/spec/unit/liquid/tags/editable/model_spec.rb +1 -1
  111. data/spec/unit/liquid/tags/editable/text_spec.rb +32 -6
  112. data/spec/unit/liquid/tags/extends_spec.rb +1 -1
  113. data/spec/unit/liquid/tags/google_analytics_spec.rb +2 -1
  114. data/spec/unit/liquid/tags/inherited_block_spec.rb +1 -1
  115. data/spec/unit/middlewares/locale_redirection_spec.rb +1 -1
  116. data/spec/unit/middlewares/renderer_spec.rb +1 -1
  117. data/spec/unit/middlewares/site_spec.rb +1 -1
  118. data/spec/unit/models/concerns/to_json_spec.rb +81 -0
  119. data/spec/unit/services/asset_host_service_spec.rb +15 -0
  120. data/spec/unit/services/entry_submission_service_spec.rb +9 -1
  121. data/spec/unit/services/translator_service_spec.rb +1 -1
  122. metadata +18 -13
  123. data/spec/fixtures/mongodb/sessions.bson +0 -0
  124. data/spec/fixtures/mongodb/sessions.metadata.json +0 -1
@@ -7,7 +7,7 @@ describe Locomotive::Steam::Liquid::Tags::Extends do
7
7
  let(:site) { instance_double('Site', default_locale: :en) }
8
8
  let!(:listener) { Liquid::SimpleEventsListener.new }
9
9
  let(:finder) { Locomotive::Steam::ParentFinderService.new(instance_double('PageRepository', site: site, locale: :en)) }
10
- let(:parser) { Locomotive::Steam::LiquidParserService.new }
10
+ let(:parser) { Locomotive::Steam::LiquidParserService.new(nil, nil) }
11
11
  let(:options) { { parent_finder: finder, page: page, parser: parser } }
12
12
 
13
13
  before do
@@ -6,7 +6,8 @@ describe Locomotive::Steam::Liquid::Tags::GoogleAnalytics do
6
6
 
7
7
  subject { render_template(source) }
8
8
 
9
- it { is_expected.to include "_gaq.push(['_setAccount', '42']);" }
9
+ it { is_expected.to include "ga('create', '42', 'auto')" }
10
+ it { is_expected.to include "ga('send', 'pageview')" }
10
11
 
11
12
  describe 'raises an error if the syntax is incorrect' do
12
13
  let(:source) { '{% google_analytics %}' }
@@ -9,7 +9,7 @@ describe Locomotive::Steam::Liquid::Tags::InheritedBlock do
9
9
 
10
10
  let!(:listener) { Liquid::SimpleEventsListener.new }
11
11
  let(:finder) { instance_double('Finder', find: parent) }
12
- let(:options) { { page: page, parent_finder: finder, parser: Locomotive::Steam::LiquidParserService.new } }
12
+ let(:options) { { page: page, parent_finder: finder, parser: Locomotive::Steam::LiquidParserService.new(nil, nil) } }
13
13
 
14
14
  let!(:template) { parse_template(source, options) }
15
15
 
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- require_relative '../../../lib/locomotive/steam/middlewares/threadsafe'
3
+ require_relative '../../../lib/locomotive/steam/middlewares/thread_safe'
4
4
  require_relative '../../../lib/locomotive/steam/middlewares/helpers'
5
5
  require_relative '../../../lib/locomotive/steam/middlewares/locale_redirection'
6
6
 
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- require_relative '../../../lib/locomotive/steam/middlewares/threadsafe'
3
+ require_relative '../../../lib/locomotive/steam/middlewares/thread_safe'
4
4
  require_relative '../../../lib/locomotive/steam/middlewares/helpers'
5
5
  require_relative '../../../lib/locomotive/steam/middlewares/renderer'
6
6
 
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- require_relative '../../../lib/locomotive/steam/middlewares/threadsafe'
3
+ require_relative '../../../lib/locomotive/steam/middlewares/thread_safe'
4
4
  require_relative '../../../lib/locomotive/steam/middlewares/helpers'
5
5
  require_relative '../../../lib/locomotive/steam/middlewares/site'
6
6
 
@@ -0,0 +1,81 @@
1
+ require 'spec_helper'
2
+
3
+ describe Locomotive::Steam::Models::Concerns::ToJson do
4
+
5
+ let(:attributes) { {} }
6
+ let(:entity) { SimpleEntity.new(attributes) }
7
+
8
+ describe '#to_hash' do
9
+
10
+ subject { entity.to_hash }
11
+
12
+ it { expect(subject).to eq({}) }
13
+
14
+ context 'simple attributes' do
15
+ let(:attributes) { { title: 'Hello world', published: true, tags: ['a', 'b'] } }
16
+ it { expect(subject).to eq('title' => 'Hello world', 'published' => true, 'tags' => ['a', 'b']) }
17
+ end
18
+
19
+ context 'localized attributes' do
20
+ let(:i18n_field) { Locomotive::Steam::Models::I18nField.new(:title, { fr: 'Bonjour', en: 'Hi' }) }
21
+ let(:attributes) { { title: i18n_field} }
22
+ it { expect(subject).to eq('title' => i18n_field) }
23
+ end
24
+
25
+ context 'referenced associations' do
26
+ let(:attributes) { { title: 'Lorem ipsum', author: instance_double('BelongsToAssociation', repository: true) } }
27
+ it { expect(subject).to eq('title' => 'Lorem ipsum') }
28
+ end
29
+
30
+ end
31
+
32
+ describe '#as_json' do
33
+
34
+ let(:options) { nil }
35
+
36
+ subject { entity.as_json(options) }
37
+
38
+ it { expect(subject).to eq({}) }
39
+
40
+ context 'with options' do
41
+
42
+ let(:options) { { only: ['title'] } }
43
+ let(:attributes) { { title: 'Hello world', body: 'Lorem ipsum' } }
44
+
45
+ it { expect(subject).to eq('title' => 'Hello world') }
46
+
47
+ end
48
+
49
+ end
50
+
51
+ describe '#to_json' do
52
+
53
+ subject { entity.to_json }
54
+
55
+ it { expect(subject).to eq('{}') }
56
+
57
+ context 'with attributes' do
58
+
59
+ let(:attributes) { { title: 'Hello world', published: true } }
60
+
61
+ it { expect(subject).to eq(%{{"title":"Hello world","published":true}}) }
62
+
63
+ end
64
+
65
+ context 'with localized attributes' do
66
+
67
+ let(:attributes) { { title: Locomotive::Steam::Models::I18nField.new(:title, { fr: 'Bonjour', en: 'Hi' })} }
68
+
69
+ it { expect(subject).to eq(%{{"title":{"fr":"Bonjour","en":"Hi"}}}) }
70
+
71
+ end
72
+
73
+ end
74
+
75
+ class SimpleEntity
76
+ include Locomotive::Steam::Models::Concerns::ToJson
77
+ attr_reader :attributes
78
+ def initialize(attributes = {}); @attributes = attributes; end
79
+ end
80
+
81
+ end
@@ -29,6 +29,14 @@ describe Locomotive::Steam::AssetHostService do
29
29
 
30
30
  end
31
31
 
32
+ context 'the timestamp coming from the site' do
33
+
34
+ let(:timestamp) { nil }
35
+ let(:site) { instance_double('ModifiedSite', template_version: DateTime.parse('2007/06/29 00:00:00'), updated_at: DateTime.parse('2009/09/10 00:00:00')) }
36
+ it { is_expected.to eq '/sites/42/assets/1/banner.png?1183075200' }
37
+
38
+ end
39
+
32
40
  end
33
41
 
34
42
  describe 'the source is already a full url' do
@@ -50,6 +58,13 @@ describe Locomotive::Steam::AssetHostService do
50
58
  let(:host) { 'http://assets.locomotivecms.com' }
51
59
  it { is_expected.to eq 'http://assets.locomotivecms.com/sites/42/assets/1/banner.png' }
52
60
 
61
+ context 'without the protocol' do
62
+
63
+ let(:host) { 's3-us-east-1.amazonaws.com' }
64
+ it { is_expected.to eq 'https://s3-us-east-1.amazonaws.com/sites/42/assets/1/banner.png' }
65
+
66
+ end
67
+
53
68
  end
54
69
 
55
70
  describe 'the host is a block' do
@@ -91,7 +91,8 @@ describe Locomotive::Steam::EntrySubmissionService do
91
91
  let(:unique_fields) { {} }
92
92
  let(:first_validation) { false }
93
93
  let(:errors) { [:title] }
94
- let(:type) { instance_double('Comments') }
94
+ let(:enabled) { true }
95
+ let(:type) { instance_double('Comments', public_submission_enabled: enabled) }
95
96
  let(:entry) { instance_double('Entry', title: 'Hello world', content_type: type, valid?: first_validation, errors: errors, attributes: { title: 'Hello world' }, localized_attributes: []) }
96
97
  let(:slug) { 'comments' }
97
98
 
@@ -101,6 +102,13 @@ describe Locomotive::Steam::EntrySubmissionService do
101
102
  allow(entry_repository).to receive(:build).with(attributes).and_return(entry)
102
103
  end
103
104
 
105
+ context 'public submission disabled' do
106
+
107
+ let(:enabled) { false }
108
+ it { is_expected.to eq nil }
109
+
110
+ end
111
+
104
112
  context 'valid' do
105
113
 
106
114
  before { expect(entry_repository).to receive(:create) }
@@ -33,7 +33,7 @@ describe Locomotive::Steam::TranslatorService do
33
33
 
34
34
  context "specifying a locale that doesn't exist" do
35
35
 
36
- let(:locale) { puts 'NL'; 'nl' }
36
+ let(:locale) { 'nl' }
37
37
 
38
38
  it 'reverts to default locale' do
39
39
  is_expected.to eq 'example_test'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locomotivecms_steam
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.beta.3
4
+ version: 1.0.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Didier Lafforgue
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-08-31 00:00:00.000000000 Z
14
+ date: 2015-10-14 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler
@@ -103,14 +103,14 @@ dependencies:
103
103
  requirements:
104
104
  - - "~>"
105
105
  - !ruby/object:Gem::Version
106
- version: 0.13.5
106
+ version: 0.13.6
107
107
  type: :runtime
108
108
  prerelease: false
109
109
  version_requirements: !ruby/object:Gem::Requirement
110
110
  requirements:
111
111
  - - "~>"
112
112
  - !ruby/object:Gem::Version
113
- version: 0.13.5
113
+ version: 0.13.6
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: chronic
116
116
  requirement: !ruby/object:Gem::Requirement
@@ -159,14 +159,14 @@ dependencies:
159
159
  requirements:
160
160
  - - "~>"
161
161
  - !ruby/object:Gem::Version
162
- version: 1.0.10
162
+ version: 1.0.12
163
163
  type: :runtime
164
164
  prerelease: false
165
165
  version_requirements: !ruby/object:Gem::Requirement
166
166
  requirements:
167
167
  - - "~>"
168
168
  - !ruby/object:Gem::Version
169
- version: 1.0.10
169
+ version: 1.0.12
170
170
  - !ruby/object:Gem::Dependency
171
171
  name: moneta
172
172
  requirement: !ruby/object:Gem::Requirement
@@ -355,14 +355,14 @@ dependencies:
355
355
  requirements:
356
356
  - - "~>"
357
357
  - !ruby/object:Gem::Version
358
- version: 0.0.4
358
+ version: 0.0.5
359
359
  type: :runtime
360
360
  prerelease: false
361
361
  version_requirements: !ruby/object:Gem::Requirement
362
362
  requirements:
363
363
  - - "~>"
364
364
  - !ruby/object:Gem::Version
365
- version: 0.0.4
365
+ version: 0.0.5
366
366
  description: The LocomotiveCMS Steam is the rendering stack used by both Wagon and
367
367
  Engine
368
368
  email:
@@ -506,7 +506,7 @@ files:
506
506
  - lib/locomotive/steam/middlewares/sitemap.rb
507
507
  - lib/locomotive/steam/middlewares/stack_proxy.rb
508
508
  - lib/locomotive/steam/middlewares/templatized_page.rb
509
- - lib/locomotive/steam/middlewares/threadsafe.rb
509
+ - lib/locomotive/steam/middlewares/thread_safe.rb
510
510
  - lib/locomotive/steam/middlewares/timezone.rb
511
511
  - lib/locomotive/steam/models.rb
512
512
  - lib/locomotive/steam/models/associations/belongs_to.rb
@@ -514,6 +514,7 @@ files:
514
514
  - lib/locomotive/steam/models/associations/has_many.rb
515
515
  - lib/locomotive/steam/models/associations/many_to_many.rb
516
516
  - lib/locomotive/steam/models/associations/referenced.rb
517
+ - lib/locomotive/steam/models/concerns/to_json.rb
517
518
  - lib/locomotive/steam/models/concerns/validation.rb
518
519
  - lib/locomotive/steam/models/entity.rb
519
520
  - lib/locomotive/steam/models/i18n_field.rb
@@ -580,6 +581,7 @@ files:
580
581
  - spec/fixtures/default/app/views/pages/grunge_bands.liquid.haml
581
582
  - spec/fixtures/default/app/views/pages/index.fr.liquid.haml
582
583
  - spec/fixtures/default/app/views/pages/index.liquid.haml
584
+ - spec/fixtures/default/app/views/pages/layouts/simple.liquid
583
585
  - spec/fixtures/default/app/views/pages/music.fr.liquid.haml
584
586
  - spec/fixtures/default/app/views/pages/music.liquid.haml
585
587
  - spec/fixtures/default/app/views/pages/songs/song-number-1.liquid.haml
@@ -626,6 +628,8 @@ files:
626
628
  - spec/fixtures/default/public/stylesheets/reboot.css
627
629
  - spec/fixtures/mongodb/locomotive_accounts.bson
628
630
  - spec/fixtures/mongodb/locomotive_accounts.metadata.json
631
+ - spec/fixtures/mongodb/locomotive_activities.bson
632
+ - spec/fixtures/mongodb/locomotive_activities.metadata.json
629
633
  - spec/fixtures/mongodb/locomotive_content_assets.bson
630
634
  - spec/fixtures/mongodb/locomotive_content_assets.metadata.json
631
635
  - spec/fixtures/mongodb/locomotive_content_entries.bson
@@ -642,8 +646,6 @@ files:
642
646
  - spec/fixtures/mongodb/locomotive_theme_assets.metadata.json
643
647
  - spec/fixtures/mongodb/locomotive_translations.bson
644
648
  - spec/fixtures/mongodb/locomotive_translations.metadata.json
645
- - spec/fixtures/mongodb/sessions.bson
646
- - spec/fixtures/mongodb/sessions.metadata.json
647
649
  - spec/fixtures/mongodb/system.indexes.bson
648
650
  - spec/integration/integration_helper.rb
649
651
  - spec/integration/liquid/tags/paginate_spec.rb
@@ -743,6 +745,7 @@ files:
743
745
  - spec/unit/middlewares/renderer_spec.rb
744
746
  - spec/unit/middlewares/site_spec.rb
745
747
  - spec/unit/middlewares/stack_proxy_spec.rb
748
+ - spec/unit/models/concerns/to_json_spec.rb
746
749
  - spec/unit/models/i18n_field_spec.rb
747
750
  - spec/unit/models/mapper_spec.rb
748
751
  - spec/unit/models/pager_spec.rb
@@ -816,6 +819,7 @@ test_files:
816
819
  - spec/fixtures/default/app/views/pages/grunge_bands.liquid.haml
817
820
  - spec/fixtures/default/app/views/pages/index.fr.liquid.haml
818
821
  - spec/fixtures/default/app/views/pages/index.liquid.haml
822
+ - spec/fixtures/default/app/views/pages/layouts/simple.liquid
819
823
  - spec/fixtures/default/app/views/pages/music.fr.liquid.haml
820
824
  - spec/fixtures/default/app/views/pages/music.liquid.haml
821
825
  - spec/fixtures/default/app/views/pages/songs/song-number-1.liquid.haml
@@ -862,6 +866,8 @@ test_files:
862
866
  - spec/fixtures/default/public/stylesheets/reboot.css
863
867
  - spec/fixtures/mongodb/locomotive_accounts.bson
864
868
  - spec/fixtures/mongodb/locomotive_accounts.metadata.json
869
+ - spec/fixtures/mongodb/locomotive_activities.bson
870
+ - spec/fixtures/mongodb/locomotive_activities.metadata.json
865
871
  - spec/fixtures/mongodb/locomotive_content_assets.bson
866
872
  - spec/fixtures/mongodb/locomotive_content_assets.metadata.json
867
873
  - spec/fixtures/mongodb/locomotive_content_entries.bson
@@ -878,8 +884,6 @@ test_files:
878
884
  - spec/fixtures/mongodb/locomotive_theme_assets.metadata.json
879
885
  - spec/fixtures/mongodb/locomotive_translations.bson
880
886
  - spec/fixtures/mongodb/locomotive_translations.metadata.json
881
- - spec/fixtures/mongodb/sessions.bson
882
- - spec/fixtures/mongodb/sessions.metadata.json
883
887
  - spec/fixtures/mongodb/system.indexes.bson
884
888
  - spec/integration/integration_helper.rb
885
889
  - spec/integration/liquid/tags/paginate_spec.rb
@@ -979,6 +983,7 @@ test_files:
979
983
  - spec/unit/middlewares/renderer_spec.rb
980
984
  - spec/unit/middlewares/site_spec.rb
981
985
  - spec/unit/middlewares/stack_proxy_spec.rb
986
+ - spec/unit/models/concerns/to_json_spec.rb
982
987
  - spec/unit/models/i18n_field_spec.rb
983
988
  - spec/unit/models/mapper_spec.rb
984
989
  - spec/unit/models/pager_spec.rb
Binary file
@@ -1 +0,0 @@
1
- { "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "locomotive_engine_2_5_dev.sessions" } ] }