ama_layout 2.1.0 → 2.1.1
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 +4 -2
- data/lib/ama_layout/version.rb +1 -1
- data/spec/ama_layout/navigation_spec.rb +14 -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: 2a56948d6638334dc8df768b53ac8bb210adc777
|
4
|
+
data.tar.gz: 1c8b90df04e5bdda69eff4b7db73a1c0b3b7d5df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38d0b12bf4f344c145d7802804beeeca5b022e81778bc43ed54b1b8d2ba5420ebc8c34969ed59609e453709c2ae1c37568573f99106549b9d1213b6310ad31dd
|
7
|
+
data.tar.gz: 94948ec04a03955e8823d13981a791e2a50952b07fd0d8fe7ac9a41d816e878b669178c95e5fb3a4b814be6772b6d068f9959dc816f77e6b8625cb0abfa512e5
|
@@ -19,8 +19,10 @@ member:
|
|
19
19
|
link: "#"
|
20
20
|
icon: "fa-car"
|
21
21
|
sub_nav:
|
22
|
-
- text: "
|
23
|
-
link: "<%= Rails.configuration.driveredonline_site
|
22
|
+
- text: "Driver Education Overview"
|
23
|
+
link: "<%= Rails.configuration.driveredonline_site %>/"
|
24
|
+
- text: "New Driver Online Program"
|
25
|
+
link: "<%= Rails.configuration.driveredonline_site %>/dashboard"
|
24
26
|
- text: "My Reward Dollars"
|
25
27
|
link: "<%= Rails.configuration.youraccount_site %>/reward_dollars"
|
26
28
|
icon: "fa-usd"
|
data/lib/ama_layout/version.rb
CHANGED
@@ -45,6 +45,20 @@ describe AmaLayout::Navigation do
|
|
45
45
|
expect(subject.items[5].link).to eq "#"
|
46
46
|
expect(subject.items[5].icon).to eq "fa-cogs"
|
47
47
|
end
|
48
|
+
|
49
|
+
context "subnavs" do
|
50
|
+
context "driver education" do
|
51
|
+
let(:driver_education_subnav) { subject.items[2].sub_nav }
|
52
|
+
|
53
|
+
it "return the subnav items" do
|
54
|
+
expect(driver_education_subnav[0].text).to eq "Driver Education Overview"
|
55
|
+
expect(driver_education_subnav[0].link).to eq "#{driveredonline_site}/"
|
56
|
+
|
57
|
+
expect(driver_education_subnav[1].text).to eq "New Driver Online Program"
|
58
|
+
expect(driver_education_subnav[1].link).to eq "#{driveredonline_site}/dashboard"
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
48
62
|
end
|
49
63
|
|
50
64
|
context "non-member" do
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael van den Beuken
|
@@ -336,7 +336,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
336
336
|
version: '0'
|
337
337
|
requirements: []
|
338
338
|
rubyforge_project:
|
339
|
-
rubygems_version: 2.
|
339
|
+
rubygems_version: 2.4.5
|
340
340
|
signing_key:
|
341
341
|
specification_version: 4
|
342
342
|
summary: ".ama.ab.ca site layouts"
|