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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e4d7400a5ba3c1ee589a630bff13866ddb1e8ff8
4
- data.tar.gz: 9c42b307528f3eacb1c9d17aafdb04369d304437
3
+ metadata.gz: 2a56948d6638334dc8df768b53ac8bb210adc777
4
+ data.tar.gz: 1c8b90df04e5bdda69eff4b7db73a1c0b3b7d5df
5
5
  SHA512:
6
- metadata.gz: 567c42c2dc1eefd73e8129001898225d0c764b9eefe4bfee999cff40211d27512831c306de75c97327125129f5bc135b88ea05e72562ee3d482d258b0da1324d
7
- data.tar.gz: ca2beabb1260b56a6bae0947c5415f63a95c610b028ac3111e72d2f9da1fc4c04542517249b9d7155e78895db7529146a1c47843abf6b45f5f944249c2e028b4
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: "New Driver Online Course"
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"
@@ -1,3 +1,3 @@
1
1
  module AmaLayout
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1"
3
3
  end
@@ -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.0
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.2.0
339
+ rubygems_version: 2.4.5
340
340
  signing_key:
341
341
  specification_version: 4
342
342
  summary: ".ama.ab.ca site layouts"