ama_layout 2.7.0 → 2.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ama_layout/navigation.yml +8 -0
- data/lib/ama_layout/version.rb +1 -1
- data/spec/ama_layout/navigation_spec.rb +17 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 103ed9954b48d11772cf142c77c641b4ddc0d7fe
|
4
|
+
data.tar.gz: 8830285de911b87544a86be0c79e4a601711dca2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93e6a2ca070ed32ff39f05c6e277477ad55bb0cad42e9c2a9ba4447a7a64b2a1d58378e6353dd1a8a930791386e083cab0bed38e94beacf6ee42dba5ccf0273e
|
7
|
+
data.tar.gz: ef9d1101ad31e6a9ceedb522b8e4b31d22f48fc1c59ba2d9150f4bcbe49a44e30a78f670e295f5e5a07866adcb245e801ce7367aa01b2c77aa1d5e6115b43925
|
@@ -33,6 +33,14 @@ member:
|
|
33
33
|
link: "<%= Rails.configuration.membership_site %>/reward_cards"
|
34
34
|
- text: "Transaction History"
|
35
35
|
link: "<%= Rails.configuration.youraccount_site %>/reward_dollars"
|
36
|
+
- text: "My Registries"
|
37
|
+
link: "#"
|
38
|
+
icon: "fa-folder-open"
|
39
|
+
sub_nav:
|
40
|
+
- text: "Registries Overview"
|
41
|
+
link: "<%= Rails.configuration.registries_site %>/"
|
42
|
+
- text: "Vehicle Registration Auto-Renew"
|
43
|
+
link: "<%= Rails.configuration.registries_site %>/order/registrations/new"
|
36
44
|
- text: "My Account Settings"
|
37
45
|
link: "#"
|
38
46
|
icon: "fa-cogs"
|
data/lib/ama_layout/version.rb
CHANGED
@@ -59,9 +59,13 @@ describe AmaLayout::Navigation do
|
|
59
59
|
expect(subject.items[3].link).to eq "#"
|
60
60
|
expect(subject.items[3].icon).to eq "fa-usd"
|
61
61
|
|
62
|
-
expect(subject.items[4].text).to eq "My
|
62
|
+
expect(subject.items[4].text).to eq "My Registries"
|
63
63
|
expect(subject.items[4].link).to eq "#"
|
64
|
-
expect(subject.items[4].icon).to eq "fa-
|
64
|
+
expect(subject.items[4].icon).to eq "fa-folder-open"
|
65
|
+
|
66
|
+
expect(subject.items[5].text).to eq "My Account Settings"
|
67
|
+
expect(subject.items[5].link).to eq "#"
|
68
|
+
expect(subject.items[5].icon).to eq "fa-cogs"
|
65
69
|
end
|
66
70
|
|
67
71
|
context "subnavs" do
|
@@ -76,6 +80,17 @@ describe AmaLayout::Navigation do
|
|
76
80
|
expect(driver_education_subnav[1].link).to eq "#{driveredonline_site}/dashboard"
|
77
81
|
end
|
78
82
|
end
|
83
|
+
|
84
|
+
context "registries" do
|
85
|
+
let(:registries_subnav) { subject.items[4].sub_nav }
|
86
|
+
|
87
|
+
it "returns the subnav items" do
|
88
|
+
expect(registries_subnav[0].text).to eq "Registries Overview"
|
89
|
+
expect(registries_subnav[0].link).to eq "#{registries_site}/"
|
90
|
+
expect(registries_subnav[1].text).to eq "Vehicle Registration Auto-Renew"
|
91
|
+
expect(registries_subnav[1].link).to eq "#{registries_site}/order/registrations/new"
|
92
|
+
end
|
93
|
+
end
|
79
94
|
end
|
80
95
|
end
|
81
96
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ama_layout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael van den Beuken
|
@@ -18,7 +18,7 @@ authors:
|
|
18
18
|
autorequire:
|
19
19
|
bindir: bin
|
20
20
|
cert_chain: []
|
21
|
-
date: 2016-04-
|
21
|
+
date: 2016-04-08 00:00:00.000000000 Z
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
24
24
|
name: foundation-rails
|
@@ -365,7 +365,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
365
365
|
version: '0'
|
366
366
|
requirements: []
|
367
367
|
rubyforge_project:
|
368
|
-
rubygems_version: 2.
|
368
|
+
rubygems_version: 2.4.5
|
369
369
|
signing_key:
|
370
370
|
specification_version: 4
|
371
371
|
summary: ".ama.ab.ca site layouts"
|