push_type_core 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/concerns/push_type/application_controller_methods.rb +18 -0
- data/app/controllers/front_end_controller.rb +17 -4
- data/lib/push_type/core/engine.rb +2 -0
- data/lib/push_type/core.rb +5 -0
- data/lib/push_type/version.rb +3 -0
- data/test/controllers/front_end_controller_test.rb +19 -0
- data/test/dummy/log/test.log +66782 -0
- data/test/lib/push_type/core_test.rb +6 -1
- data/test/test_helper.rb +1 -0
- metadata +4 -2
@@ -3,6 +3,11 @@ require "test_helper"
|
|
3
3
|
module PushType
|
4
4
|
describe ::PushType do
|
5
5
|
|
6
|
+
describe '.version' do
|
7
|
+
subject { PushType.version }
|
8
|
+
it { subject.must_equal PushType::VERSION }
|
9
|
+
end
|
10
|
+
|
6
11
|
describe '.config' do
|
7
12
|
subject { PushType.config }
|
8
13
|
it { subject.root_nodes.wont_be_nil }
|
@@ -34,7 +39,7 @@ module PushType
|
|
34
39
|
it { subject.must_be_empty }
|
35
40
|
end
|
36
41
|
describe 'specified single value' do
|
37
|
-
before { PushType.config.unexposed_nodes =
|
42
|
+
before { PushType.config.unexposed_nodes = :page }
|
38
43
|
it { subject.must_equal ['Page'] }
|
39
44
|
end
|
40
45
|
describe 'specified array with nonsense values' do
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: push_type_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Russell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -118,6 +118,7 @@ extra_rdoc_files: []
|
|
118
118
|
files:
|
119
119
|
- LICENSE.md
|
120
120
|
- README.md
|
121
|
+
- app/controllers/concerns/push_type/application_controller_methods.rb
|
121
122
|
- app/controllers/front_end_controller.rb
|
122
123
|
- app/fields/push_type/array_field.rb
|
123
124
|
- app/fields/push_type/date_field.rb
|
@@ -163,6 +164,7 @@ files:
|
|
163
164
|
- lib/push_type/testing/setup.rb
|
164
165
|
- lib/push_type/testing/support/expectations.rb
|
165
166
|
- lib/push_type/testing/support/test_page.rb
|
167
|
+
- lib/push_type/version.rb
|
166
168
|
- lib/push_type_core.rb
|
167
169
|
- lib/tasks/push_type_tasks.rake
|
168
170
|
- test/controllers/front_end_controller_test.rb
|