seiten 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/seiten/pages_controller.rb +0 -1
- data/lib/seiten/page.rb +2 -1
- data/lib/seiten/page_store.rb +9 -4
- data/lib/seiten/version.rb +1 -1
- data/lib/seiten.rb +0 -1
- data/test/dummy/config/navigation/en.yml +8 -0
- data/test/dummy/log/development.log +1 -0
- data/test/dummy/log/test.log +2356 -0
- data/test/page_test.rb +6 -0
- metadata +2 -4
- data/test/dummy/tmp/pids/server.pid +0 -1
data/test/page_test.rb
CHANGED
@@ -95,4 +95,10 @@ class PageTest < Test::Unit::TestCase
|
|
95
95
|
def test_returns_nil_for_active_method_when_current_page_is_nil
|
96
96
|
assert_equal nil, Seiten::Page.find(1).active?(nil)
|
97
97
|
end
|
98
|
+
|
99
|
+
def test_returns_metadata
|
100
|
+
page = Seiten::Page.find_by_slug("products/logo-design")
|
101
|
+
assert_equal({ header_image: "logo.jpg", description: "Our logo design is awesome." }, page.metadata)
|
102
|
+
assert_equal "logo.jpg", page.metadata[:header_image]
|
103
|
+
end
|
98
104
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seiten
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Puglisi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -128,7 +128,6 @@ files:
|
|
128
128
|
- test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
|
129
129
|
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
130
130
|
- test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
131
|
-
- test/dummy/tmp/pids/server.pid
|
132
131
|
- test/integration/i18n_test.rb
|
133
132
|
- test/integration/layout_test.rb
|
134
133
|
- test/integration/navigation_test.rb
|
@@ -217,7 +216,6 @@ test_files:
|
|
217
216
|
- test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
|
218
217
|
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
219
218
|
- test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
220
|
-
- test/dummy/tmp/pids/server.pid
|
221
219
|
- test/integration/i18n_test.rb
|
222
220
|
- test/integration/layout_test.rb
|
223
221
|
- test/integration/navigation_test.rb
|
@@ -1 +0,0 @@
|
|
1
|
-
47202
|