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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 416273c0d7ade6a4e92f736aa10970b6b9c9224c
4
- data.tar.gz: ee0dc5ad4a928099a577d4cb21222964317da30a
3
+ metadata.gz: 103ed9954b48d11772cf142c77c641b4ddc0d7fe
4
+ data.tar.gz: 8830285de911b87544a86be0c79e4a601711dca2
5
5
  SHA512:
6
- metadata.gz: c63ef60ae4218f5012c0bb72672546ef7ac9af548bfa7cafde5657f38c957023cf0514767a4ac91c984eeecae23e4d70c0fd8a1e0add6b37f6b55ed2a1a8fb08
7
- data.tar.gz: a87bd42dfcc7228d3ab24a86c009818e91a3a486e8f3509159df148d428d34a9c5d613e2b609e68cb1c1023559120d0a5906b58daef11b590fc8384923794d55
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"
@@ -1,3 +1,3 @@
1
1
  module AmaLayout
2
- VERSION = '2.7.0'
2
+ VERSION = '2.8.0'
3
3
  end
@@ -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 Account Settings"
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-cogs"
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.7.0
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-06 00:00:00.000000000 Z
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.2.0
368
+ rubygems_version: 2.4.5
369
369
  signing_key:
370
370
  specification_version: 4
371
371
  summary: ".ama.ab.ca site layouts"