ama_layout 9.0.0 → 9.1.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: '05548c0c4d9d43880761679cbfd8f8f1ce52ef1f'
4
- data.tar.gz: a1eec1a2d699f9f3ae9d0d972b332ed88daece13
3
+ metadata.gz: 381e5c86ac00e39b26f2d68a9241d54c141ae830
4
+ data.tar.gz: e9bf4d2558247a8009297afb0d7daf63fb87c8fc
5
5
  SHA512:
6
- metadata.gz: de302c59d56d01e9456ea3e566df7dfca6ab9cf4b74d832cf0f48d5cb71ebdebf4c1defc5511a1027e03275281d5431ee272d9cc79a1d67c1ecc9b392a1f6c35
7
- data.tar.gz: 4c2b91ea3e0aa168a30043cd2799632e0726f947d22da484ae3b0ec8cf595159b255c8d15a4c6e7b0949bc7178551b3b5fe087bbdd4f72d56b33f85dae0b59e5
6
+ metadata.gz: b96a24fd72eafb48a6f4f8534eafe6e56b0da0a1fdc7ce0fd7a888d94b167b9aae098039c1d9034208cfe335cc74a41d7aa4fb2e103febab978cda98df1e8b0b
7
+ data.tar.gz: 9999cc4518cd98b55aca450f78f7d9f5b1e4cebc130b154cb69e29c93d059f29be12366783f1194b00aa1f0f8919c224af45fdcc5a6ce1e17037230d0cc7db27
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency 'bundler', '~> 1.11'
27
27
  spec.add_development_dependency 'rake', '>= 11.0'
28
28
  spec.add_development_dependency 'rspec-rails'
29
- spec.add_development_dependency 'factory_girl'
29
+ spec.add_development_dependency 'factory_bot'
30
30
  spec.add_development_dependency 'simplecov'
31
31
  spec.add_development_dependency 'pry'
32
32
  spec.add_development_dependency 'combustion'
@@ -1,3 +1,3 @@
1
- <ul class="breadcrumbs">
1
+ <ul class="breadcrumbs row column">
2
2
  <%= render_breadcrumbs builder: AmaLayout::BreadcrumbBuilder %>
3
3
  </ul>
@@ -1,3 +1,3 @@
1
1
  module AmaLayout
2
- VERSION = '9.0.0'
2
+ VERSION = '9.1.0'
3
3
  end
@@ -2,7 +2,7 @@ describe AmaLayout::Agent::NavigationDecorator do
2
2
  let(:name) { "John D" }
3
3
  let(:cash_drawer) { OpenStruct.new(name: 'Edmonton Main') }
4
4
  let(:user) { OpenStruct.new(email: 'john.doe@test.com', cash_drawers: [cash_drawer]) }
5
- let(:navigation) { FactoryGirl.build(:agent_navigation, user: user, display_name: name) }
5
+ let(:navigation) { FactoryBot.build(:agent_navigation, user: user, display_name: name) }
6
6
  let(:navigation_presenter) { navigation.decorate }
7
7
 
8
8
  describe "#display_name_text" do
@@ -1,5 +1,5 @@
1
1
  describe AmaLayout::NavigationDecorator do
2
- let(:navigation) { FactoryGirl.build(:navigation) }
2
+ let(:navigation) { FactoryBot.build(:navigation) }
3
3
  let(:navigation_presenter) { navigation.decorate }
4
4
 
5
5
  before(:each) do
@@ -166,7 +166,7 @@ describe AmaLayout::NavigationDecorator do
166
166
  end
167
167
  let(:notification_set) { AmaLayout::NotificationSet.new(store, 1) }
168
168
  let(:user) { OpenStruct.new(navigation: 'member', notifications: notification_set) }
169
- let(:navigation) { FactoryGirl.build :navigation, user: user }
169
+ let(:navigation) { FactoryBot.build :navigation, user: user }
170
170
  subject { described_class.new(navigation) }
171
171
 
172
172
  around(:each) do |example|
@@ -1,5 +1,5 @@
1
1
  describe AmaLayout::NavigationItemDecorator do
2
- let(:navigation_item) { FactoryGirl.build(:navigation_item) }
2
+ let(:navigation_item) { FactoryBot.build(:navigation_item) }
3
3
  let(:navigation_item_presenter) { navigation_item.decorate }
4
4
  let(:items) { [{ text: "Othersite Overview", link: "http://othersite.com"}] }
5
5
 
@@ -1,5 +1,5 @@
1
1
  describe AmaLayout::NavigationHelper do
2
- subject { FactoryGirl.create(:user) }
2
+ subject { FactoryBot.create(:user) }
3
3
 
4
4
  describe '#navigation' do
5
5
  before(:each) do
@@ -7,7 +7,7 @@ describe AmaLayout::NavigationHelper do
7
7
  end
8
8
 
9
9
  context 'non-member' do
10
- subject { FactoryGirl.create(:user, :non_member) }
10
+ subject { FactoryBot.create(:user, :non_member) }
11
11
 
12
12
  it 'shows non-member sidebar menu' do
13
13
  expect(subject.navigation).to eq 'non-member'
@@ -21,7 +21,7 @@ describe AmaLayout::NavigationHelper do
21
21
  end
22
22
 
23
23
  context 'member with accr' do
24
- subject { FactoryGirl.create(:user, :with_accr) }
24
+ subject { FactoryBot.create(:user, :with_accr) }
25
25
 
26
26
  it 'shows member sidebar menu' do
27
27
  expect(subject.navigation).to eq 'member'
@@ -29,7 +29,7 @@ describe AmaLayout::NavigationHelper do
29
29
  end
30
30
 
31
31
  context 'member with mpp' do
32
- subject { FactoryGirl.create(:user, :with_mpp) }
32
+ subject { FactoryBot.create(:user, :with_mpp) }
33
33
 
34
34
  it 'shows member sidebar menu' do
35
35
  expect(subject.navigation).to eq 'member'
@@ -37,7 +37,7 @@ describe AmaLayout::NavigationHelper do
37
37
  end
38
38
 
39
39
  context 'member in-renewal' do
40
- subject { FactoryGirl.create(:user, :in_renewal) }
40
+ subject { FactoryBot.create(:user, :in_renewal) }
41
41
 
42
42
  it 'shows in-renewal sidebar menu' do
43
43
  expect(subject.navigation).to eq 'member-in-renewal'
@@ -45,7 +45,7 @@ describe AmaLayout::NavigationHelper do
45
45
  end
46
46
 
47
47
  context 'member in-renewal late' do
48
- subject { FactoryGirl.create(:user, :in_renewal_late) }
48
+ subject { FactoryBot.create(:user, :in_renewal_late) }
49
49
 
50
50
  it 'shows in-renewal-late sidebar menu' do
51
51
  expect(subject.navigation).to eq 'member-in-renewal-late'
@@ -53,7 +53,7 @@ describe AmaLayout::NavigationHelper do
53
53
  end
54
54
 
55
55
  context 'member with outstanding balance' do
56
- subject { FactoryGirl.create(:user, :outstanding_balance) }
56
+ subject { FactoryBot.create(:user, :outstanding_balance) }
57
57
 
58
58
  it 'shows member-with-outstanding-balance sidebar menu' do
59
59
  expect(subject.navigation).to eq 'member-with-outstanding-balance'
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :agent_navigation, class: AmaLayout::Agent::Navigation do
3
3
  current_url "http://waffleemporium.ca"
4
4
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :navigation, class: AmaLayout::Navigation do
3
3
  current_url "http://waffleemporium.ca"
4
4
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :navigation_item, class: AmaLayout::NavigationItem do
3
3
  text "Gotham Overview"
4
4
  icon "fa-tachometer"
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :user, class: Class.new(OpenStruct) do
3
3
  in_renewal false
4
4
  member_type 'P'
@@ -3,7 +3,7 @@ describe AmaLayoutContentHelper do
3
3
  let(:site_name) { "Waffle Emporium" }
4
4
  let(:site_domain) { "http://waffleemporium.ca" }
5
5
  let(:site_url) { "#{site_domain}/wafflesauce" }
6
- let(:nav_item) { FactoryGirl.build(:navigation_item) }
6
+ let(:nav_item) { FactoryBot.build(:navigation_item) }
7
7
 
8
8
  describe "#greeting" do
9
9
  it "returns the greeting set in the domain cookie" do
@@ -1,5 +1,5 @@
1
1
  require 'simplecov'
2
- require 'factory_girl'
2
+ require 'factory_bot'
3
3
  require 'ama_layout'
4
4
  require 'pry'
5
5
  require 'rspec/rails'
@@ -12,7 +12,7 @@ Combustion.initialize! :all
12
12
 
13
13
  Dir['./spec/support/**/*.rb'].sort.each { |file| require file }
14
14
 
15
- FactoryGirl.find_definitions
15
+ FactoryBot.find_definitions
16
16
 
17
17
  ActionView::TestCase::TestController.instance_eval do
18
18
  helper Rails.application.routes.url_helpers
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: 9.0.0
4
+ version: 9.1.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-10-10 00:00:00.000000000 Z
21
+ date: 2018-01-03 00:00:00.000000000 Z
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
24
  name: foundation-rails
@@ -133,7 +133,7 @@ dependencies:
133
133
  - !ruby/object:Gem::Version
134
134
  version: '0'
135
135
  - !ruby/object:Gem::Dependency
136
- name: factory_girl
136
+ name: factory_bot
137
137
  requirement: !ruby/object:Gem::Requirement
138
138
  requirements:
139
139
  - - ">="