ama_layout 4.3.1 → 4.4.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99b7a9517bf8176ca9bf1e4bc62caf22e0700a5d
|
4
|
+
data.tar.gz: eec9cda14eae11bcae20617e23dc55690a6eccc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59bab3180a3f028ec1846ded1904e9b25ff08710a2f259aa69cd4fa536aaf28c18d3dc868767dec9ae5299396aec1f962a0752078285198775134b050781b5c8
|
7
|
+
data.tar.gz: d3110834a05c82864d118712138440f5036ad7ec9bea9e02b9568c26d3b68d565060b010f69cbcff764595b8962e45dada41ef166db6c3c406e87d9a53e76340
|
@@ -14,6 +14,12 @@ member:
|
|
14
14
|
link: "<%= Rails.configuration.youraccount_site %>/billing"
|
15
15
|
- text: "Print/Request New Card"
|
16
16
|
link: "<%= Rails.configuration.youraccount_site %>/membership"
|
17
|
+
- text: "My Roadside Assistance"
|
18
|
+
link: "<%= Rails.configuration.automotive_site %>/"
|
19
|
+
icon: "fa-car"
|
20
|
+
sub_nav:
|
21
|
+
- text: "Roadside Assistance Overview"
|
22
|
+
link: "<%= Rails.configuration.automotive_site %>/"
|
17
23
|
- text: "My Driver Education"
|
18
24
|
link: "<%= Rails.configuration.driveredonline_site %>/"
|
19
25
|
icon: "fa-car"
|
data/lib/ama_layout/version.rb
CHANGED
@@ -7,6 +7,7 @@ describe AmaLayout::NavigationDecorator do
|
|
7
7
|
let(:membership_site) { "http://membership.waffles.ca" }
|
8
8
|
let(:driveredonline_site) { "http://driveredonline.waffles.ca" }
|
9
9
|
let(:registries_site) { "http://registries.waffles.ca" }
|
10
|
+
let(:automotive_site) { "http://automotive.waffles.ca"}
|
10
11
|
|
11
12
|
before(:each) do
|
12
13
|
allow(Rails.configuration).to receive(:gatekeeper_site).and_return(gatekeeper_site)
|
@@ -15,6 +16,7 @@ describe AmaLayout::NavigationDecorator do
|
|
15
16
|
allow(Rails.configuration).to receive(:membership_site).and_return(membership_site)
|
16
17
|
allow(Rails.configuration).to receive(:driveredonline_site).and_return(driveredonline_site)
|
17
18
|
allow(Rails.configuration).to receive(:registries_site).and_return(registries_site)
|
19
|
+
allow(Rails.configuration).to receive(:automotive_site).and_return(automotive_site)
|
18
20
|
end
|
19
21
|
|
20
22
|
describe "#display_name_text" do
|
@@ -5,6 +5,7 @@ describe AmaLayout::Navigation do
|
|
5
5
|
let(:membership_site) { "http://membership.waffles.ca" }
|
6
6
|
let(:driveredonline_site) { "http://driveredonline.waffles.ca" }
|
7
7
|
let(:registries_site) { "http://registries.waffles.ca" }
|
8
|
+
let(:automotive_site) { "http://automotive.waffles.ca"}
|
8
9
|
|
9
10
|
before(:each) do
|
10
11
|
allow(Rails.configuration).to receive(:gatekeeper_site).and_return(gatekeeper_site)
|
@@ -13,6 +14,7 @@ describe AmaLayout::Navigation do
|
|
13
14
|
allow(Rails.configuration).to receive(:membership_site).and_return(membership_site)
|
14
15
|
allow(Rails.configuration).to receive(:driveredonline_site).and_return(driveredonline_site)
|
15
16
|
allow(Rails.configuration).to receive(:registries_site).and_return(registries_site)
|
17
|
+
allow(Rails.configuration).to receive(:automotive_site).and_return(automotive_site)
|
16
18
|
end
|
17
19
|
|
18
20
|
describe "#nav_file_path" do
|
@@ -62,8 +64,17 @@ describe AmaLayout::Navigation do
|
|
62
64
|
|
63
65
|
context "member" do
|
64
66
|
context "subnavs" do
|
67
|
+
context "automotive" do
|
68
|
+
let(:automotive_subnav) { subject.items[2].sub_nav }
|
69
|
+
|
70
|
+
it "returns the subnav items" do
|
71
|
+
expect(automotive_subnav[0].text).to eq "Roadside Assistance Overview"
|
72
|
+
expect(automotive_subnav[0].link).to eq "#{automotive_site}/"
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
65
76
|
context "driver education" do
|
66
|
-
let(:driver_education_subnav) { subject.items[
|
77
|
+
let(:driver_education_subnav) { subject.items[3].sub_nav }
|
67
78
|
|
68
79
|
it "return the subnav items" do
|
69
80
|
expect(driver_education_subnav[0].text).to eq "Driver Education Overview"
|
@@ -75,7 +86,7 @@ describe AmaLayout::Navigation do
|
|
75
86
|
end
|
76
87
|
|
77
88
|
context "registries" do
|
78
|
-
let(:registries_subnav) { subject.items[
|
89
|
+
let(:registries_subnav) { subject.items[5].sub_nav }
|
79
90
|
|
80
91
|
it "returns the subnav items" do
|
81
92
|
expect(registries_subnav[0].text).to eq "Registries Overview"
|
@@ -90,6 +101,9 @@ describe AmaLayout::Navigation do
|
|
90
101
|
context "non-member" do
|
91
102
|
context "subnavs" do
|
92
103
|
context "driver education" do
|
104
|
+
before(:each) do
|
105
|
+
subject.user = OpenStruct.new navigation: "non-member"
|
106
|
+
end
|
93
107
|
let(:driver_education_subnav) { subject.items[2].sub_nav }
|
94
108
|
|
95
109
|
it "return the subnav items" do
|
@@ -106,6 +120,9 @@ describe AmaLayout::Navigation do
|
|
106
120
|
context "member-in-renewal" do
|
107
121
|
context "subnavs" do
|
108
122
|
context "driver education" do
|
123
|
+
before(:each) do
|
124
|
+
subject.user = OpenStruct.new navigation: "member-in-renewal"
|
125
|
+
end
|
109
126
|
let(:driver_education_subnav) { subject.items[2].sub_nav }
|
110
127
|
|
111
128
|
it "return the subnav items" do
|
@@ -122,6 +139,9 @@ describe AmaLayout::Navigation do
|
|
122
139
|
context "member-in-renewal-late" do
|
123
140
|
context "subnavs" do
|
124
141
|
context "driver education" do
|
142
|
+
before(:each) do
|
143
|
+
subject.user = OpenStruct.new navigation: "member-in-renewal-late"
|
144
|
+
end
|
125
145
|
let(:driver_education_subnav) { subject.items[2].sub_nav }
|
126
146
|
|
127
147
|
it "return the subnav items" 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: 4.
|
4
|
+
version: 4.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael van den Beuken
|
@@ -405,7 +405,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
405
405
|
version: '0'
|
406
406
|
requirements: []
|
407
407
|
rubyforge_project:
|
408
|
-
rubygems_version: 2.
|
408
|
+
rubygems_version: 2.4.5.1
|
409
409
|
signing_key:
|
410
410
|
specification_version: 4
|
411
411
|
summary: ".ama.ab.ca site layouts"
|