ama_layout 2.1.1 → 2.1.2
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/lib/ama_layout/navigation.yml +12 -6
- data/lib/ama_layout/version.rb +1 -1
- data/spec/ama_layout/navigation_spec.rb +42 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 172e2de2bbdce0790ba8ccaaebf31bc1511a7658
|
|
4
|
+
data.tar.gz: 197d53549f853711f1e57b8bf21ba6ad5c5256d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0d310f0f23073d525ade2f519d929f2dc88ed375402b68e3b30d4166c38e96ea71495d30d5e282e95f1a2d64c73127e3c1e5e32092d0d72a15a7e16cb760a3ae
|
|
7
|
+
data.tar.gz: 06f1fdf58bbb0cf9a0d45caf403febc35796aeed4a0e2061f7bc4bb23184edb8599f0931e9b205336c4e9d57b244edcc6bae61bcf686ad94eea4706c2a7f1f29
|
|
@@ -54,8 +54,10 @@ non-member:
|
|
|
54
54
|
link: "#"
|
|
55
55
|
icon: "fa-car"
|
|
56
56
|
sub_nav:
|
|
57
|
-
- text: "
|
|
58
|
-
link: "<%= Rails.configuration.driveredonline_site
|
|
57
|
+
- text: "Driver Education Overview"
|
|
58
|
+
link: "<%= Rails.configuration.driveredonline_site %>/"
|
|
59
|
+
- text: "New Driver Online Program"
|
|
60
|
+
link: "<%= Rails.configuration.driveredonline_site %>/dashboard"
|
|
59
61
|
- text: "Change Email/Password"
|
|
60
62
|
link: "<%= Rails.configuration.gatekeeper_site %>/user/edit"
|
|
61
63
|
icon: "fa-cogs"
|
|
@@ -71,8 +73,10 @@ member-in-renewal:
|
|
|
71
73
|
link: "#"
|
|
72
74
|
icon: "fa-car"
|
|
73
75
|
sub_nav:
|
|
74
|
-
- text: "
|
|
75
|
-
link: "<%= Rails.configuration.driveredonline_site
|
|
76
|
+
- text: "Driver Education Overview"
|
|
77
|
+
link: "<%= Rails.configuration.driveredonline_site %>/"
|
|
78
|
+
- text: "New Driver Online Program"
|
|
79
|
+
link: "<%= Rails.configuration.driveredonline_site %>/dashboard"
|
|
76
80
|
member-in-renewal-late:
|
|
77
81
|
- text: "Account Dashboard"
|
|
78
82
|
alt: "Back to my dashboard"
|
|
@@ -85,5 +89,7 @@ member-in-renewal-late:
|
|
|
85
89
|
link: "#"
|
|
86
90
|
icon: "fa-car"
|
|
87
91
|
sub_nav:
|
|
88
|
-
- text: "
|
|
89
|
-
link: "<%= Rails.configuration.driveredonline_site
|
|
92
|
+
- text: "Driver Education Overview"
|
|
93
|
+
link: "<%= Rails.configuration.driveredonline_site %>/"
|
|
94
|
+
- text: "New Driver Online Program"
|
|
95
|
+
link: "<%= Rails.configuration.driveredonline_site %>/dashboard"
|
data/lib/ama_layout/version.rb
CHANGED
|
@@ -85,6 +85,20 @@ describe AmaLayout::Navigation do
|
|
|
85
85
|
expect(subject.items[3].link).to eq "#{gatekeeper_site}/user/edit"
|
|
86
86
|
expect(subject.items[3].icon).to eq "fa-cogs"
|
|
87
87
|
end
|
|
88
|
+
|
|
89
|
+
context "subnavs" do
|
|
90
|
+
context "driver education" do
|
|
91
|
+
let(:driver_education_subnav) { subject.items[2].sub_nav }
|
|
92
|
+
|
|
93
|
+
it "return the subnav items" do
|
|
94
|
+
expect(driver_education_subnav[0].text).to eq "Driver Education Overview"
|
|
95
|
+
expect(driver_education_subnav[0].link).to eq "#{driveredonline_site}/"
|
|
96
|
+
|
|
97
|
+
expect(driver_education_subnav[1].text).to eq "New Driver Online Program"
|
|
98
|
+
expect(driver_education_subnav[1].link).to eq "#{driveredonline_site}/dashboard"
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
88
102
|
end
|
|
89
103
|
|
|
90
104
|
context "member-in-renewal" do
|
|
@@ -106,6 +120,20 @@ describe AmaLayout::Navigation do
|
|
|
106
120
|
expect(subject.items[2].link).to eq "#"
|
|
107
121
|
expect(subject.items[2].icon).to eq "fa-car"
|
|
108
122
|
end
|
|
123
|
+
|
|
124
|
+
context "subnavs" do
|
|
125
|
+
context "driver education" do
|
|
126
|
+
let(:driver_education_subnav) { subject.items[2].sub_nav }
|
|
127
|
+
|
|
128
|
+
it "return the subnav items" do
|
|
129
|
+
expect(driver_education_subnav[0].text).to eq "Driver Education Overview"
|
|
130
|
+
expect(driver_education_subnav[0].link).to eq "#{driveredonline_site}/"
|
|
131
|
+
|
|
132
|
+
expect(driver_education_subnav[1].text).to eq "New Driver Online Program"
|
|
133
|
+
expect(driver_education_subnav[1].link).to eq "#{driveredonline_site}/dashboard"
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
end
|
|
109
137
|
end
|
|
110
138
|
|
|
111
139
|
context "member-in-renewal-late" do
|
|
@@ -127,6 +155,20 @@ describe AmaLayout::Navigation do
|
|
|
127
155
|
expect(subject.items[2].link).to eq "#"
|
|
128
156
|
expect(subject.items[2].icon).to eq "fa-car"
|
|
129
157
|
end
|
|
158
|
+
|
|
159
|
+
context "subnavs" do
|
|
160
|
+
context "driver education" do
|
|
161
|
+
let(:driver_education_subnav) { subject.items[2].sub_nav }
|
|
162
|
+
|
|
163
|
+
it "return the subnav items" do
|
|
164
|
+
expect(driver_education_subnav[0].text).to eq "Driver Education Overview"
|
|
165
|
+
expect(driver_education_subnav[0].link).to eq "#{driveredonline_site}/"
|
|
166
|
+
|
|
167
|
+
expect(driver_education_subnav[1].text).to eq "New Driver Online Program"
|
|
168
|
+
expect(driver_education_subnav[1].link).to eq "#{driveredonline_site}/dashboard"
|
|
169
|
+
end
|
|
170
|
+
end
|
|
171
|
+
end
|
|
130
172
|
end
|
|
131
173
|
end
|
|
132
174
|
end
|
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.1.
|
|
4
|
+
version: 2.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael van den Beuken
|
|
@@ -17,7 +17,7 @@ authors:
|
|
|
17
17
|
autorequire:
|
|
18
18
|
bindir: bin
|
|
19
19
|
cert_chain: []
|
|
20
|
-
date: 2015-11-
|
|
20
|
+
date: 2015-11-27 00:00:00.000000000 Z
|
|
21
21
|
dependencies:
|
|
22
22
|
- !ruby/object:Gem::Dependency
|
|
23
23
|
name: foundation-rails
|