ama_layout 7.0.2 → 8.0.0
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 +2 -2
- data/lib/ama_layout/version.rb +1 -1
- data/spec/ama_layout/decorators/navigation_decorator_spec.rb +2 -0
- data/spec/ama_layout/navigation_spec.rb +4 -2
- data/spec/helpers/ama_layout_path_helper_spec.rb +2 -0
- data/spec/support/shared_examples/member_navigation.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e719b1f4c15f4797330387b87499a87ee792912
|
4
|
+
data.tar.gz: 79c3e62574dffa1f18688ba0f9fb3f3b0dc2ec04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdde9b2cc442ca9d1aabbe204feec3183b99ab80e13d397fb822bde49eb283b00fc85e2691be4bd56f272bb41cf636e3669ae06d8b589103d55d0ce0865bc475
|
7
|
+
data.tar.gz: 9ce06e94a4886e2965637f6ba78ee8734811effffc934cd21a7d8d8a634b2356b7d161168f6c8b354f91e7c6b3000710ae5fb6fe711de03ebd64cab15bff8477
|
@@ -49,7 +49,7 @@ member:
|
|
49
49
|
- text: "Vehicle Registration Auto-Renew"
|
50
50
|
link: "<%= Rails.configuration.registries_site %>/order/registrations/new"
|
51
51
|
- text: "My Travel"
|
52
|
-
link: "<%= Rails.configuration.
|
52
|
+
link: "<%= Rails.configuration.travel_login_url %>"
|
53
53
|
- text: "My Account Settings"
|
54
54
|
link: "<%= Rails.configuration.gatekeeper_site %>/user/edit"
|
55
55
|
icon: "fa-cogs"
|
@@ -134,7 +134,7 @@ member-in-renewal:
|
|
134
134
|
- text: "Vehicle Registration Auto-Renew"
|
135
135
|
link: "<%= Rails.configuration.registries_site %>/order/registrations/new"
|
136
136
|
- text: "My Travel"
|
137
|
-
link: "<%= Rails.configuration.
|
137
|
+
link: "<%= Rails.configuration.travel_login_url %>"
|
138
138
|
- text: "My Account Settings"
|
139
139
|
link: "<%= Rails.configuration.gatekeeper_site %>/user/edit"
|
140
140
|
icon: "fa-cogs"
|
data/lib/ama_layout/version.rb
CHANGED
@@ -9,6 +9,7 @@ describe AmaLayout::NavigationDecorator do
|
|
9
9
|
let(:registries_site) { "http://registries.waffles.ca" }
|
10
10
|
let(:automotive_site) { "http://automotive.waffles.ca" }
|
11
11
|
let(:travel_site) { "http://travel.waffles.ca" }
|
12
|
+
let(:travel_login_url) { "http://travel.waffles.ca/MyAccount" }
|
12
13
|
|
13
14
|
before(:each) do
|
14
15
|
allow(Rails.configuration).to receive(:gatekeeper_site).and_return(gatekeeper_site)
|
@@ -19,6 +20,7 @@ describe AmaLayout::NavigationDecorator do
|
|
19
20
|
allow(Rails.configuration).to receive(:registries_site).and_return(registries_site)
|
20
21
|
allow(Rails.configuration).to receive(:automotive_site).and_return(automotive_site)
|
21
22
|
allow(Rails.configuration).to receive(:travel_site).and_return(travel_site)
|
23
|
+
allow(Rails.configuration).to receive(:travel_login_url).and_return(travel_login_url)
|
22
24
|
end
|
23
25
|
|
24
26
|
describe "#display_name_text" do
|
@@ -5,8 +5,9 @@ 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"}
|
9
|
-
let(:travel_site) { "http://travel.waffles.ca"}
|
8
|
+
let(:automotive_site) { "http://automotive.waffles.ca" }
|
9
|
+
let(:travel_site) { "http://travel.waffles.ca" }
|
10
|
+
let(:travel_login_url) { "http://travel.waffles.ca/MyAccount" }
|
10
11
|
|
11
12
|
before(:each) do
|
12
13
|
allow(Rails.configuration).to receive(:gatekeeper_site).and_return(gatekeeper_site)
|
@@ -17,6 +18,7 @@ describe AmaLayout::Navigation do
|
|
17
18
|
allow(Rails.configuration).to receive(:registries_site).and_return(registries_site)
|
18
19
|
allow(Rails.configuration).to receive(:automotive_site).and_return(automotive_site)
|
19
20
|
allow(Rails.configuration).to receive(:travel_site).and_return(travel_site)
|
21
|
+
allow(Rails.configuration).to receive(:travel_login_url).and_return(travel_login_url)
|
20
22
|
end
|
21
23
|
|
22
24
|
describe "#nav_file_path" do
|
@@ -5,6 +5,7 @@ describe AmaLayoutPathHelper do
|
|
5
5
|
let(:membership_site) { "http://membership.waffles.ca" }
|
6
6
|
let(:driveredonline_site) { "http://driveredonline.waffles.ca" }
|
7
7
|
let(:travel_site) { "http://travel.waffles.ca" }
|
8
|
+
let(:travel_login_url) { "http://travel.waffles.ca/MyAccount" }
|
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 AmaLayoutPathHelper 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(:travel_site).and_return(travel_site)
|
17
|
+
allow(Rails.configuration).to receive(:travel_login_url).and_return(travel_login_url)
|
16
18
|
end
|
17
19
|
|
18
20
|
describe "#gatekeeper_profile_path" do
|
@@ -81,7 +81,7 @@ shared_examples 'member_navigation' do
|
|
81
81
|
context 'travel' do
|
82
82
|
it 'has the correct travel text and url' do
|
83
83
|
expect(subject.items[6].text).to eq 'My Travel'
|
84
|
-
expect(subject.items[6].link).to eq "#{
|
84
|
+
expect(subject.items[6].link).to eq "#{travel_login_url}"
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
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
|
+
version: 8.0.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: 2017-
|
21
|
+
date: 2017-09-11 00:00:00.000000000 Z
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
24
24
|
name: foundation-rails
|
@@ -377,7 +377,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
377
377
|
version: '0'
|
378
378
|
requirements: []
|
379
379
|
rubyforge_project:
|
380
|
-
rubygems_version: 2.
|
380
|
+
rubygems_version: 2.6.13
|
381
381
|
signing_key:
|
382
382
|
specification_version: 4
|
383
383
|
summary: ".ama.ab.ca site layouts"
|