From 113d13c3ad6af94ac76f6cc44329f749be5ebd54 Mon Sep 17 00:00:00 2001 From: Ryan Lue Date: Thu, 5 Jul 2018 23:43:52 +0800 Subject: [PATCH] Rename CanLookup RSpec shared example group to follow existing pattern --- spec/models/concerns/{can_lookup.rb => can_lookup_examples.rb} | 0 spec/models/organization_spec.rb | 2 +- spec/models/ticket_spec.rb | 2 +- spec/models/user_spec.rb | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename spec/models/concerns/{can_lookup.rb => can_lookup_examples.rb} (100%) diff --git a/spec/models/concerns/can_lookup.rb b/spec/models/concerns/can_lookup_examples.rb similarity index 100% rename from spec/models/concerns/can_lookup.rb rename to spec/models/concerns/can_lookup_examples.rb diff --git a/spec/models/organization_spec.rb b/spec/models/organization_spec.rb index dc522a3f5..1ffce6605 100644 --- a/spec/models/organization_spec.rb +++ b/spec/models/organization_spec.rb @@ -1,5 +1,5 @@ require 'rails_helper' -require 'models/concerns/can_lookup' +require 'models/concerns/can_lookup_examples' RSpec.describe Organization do include_examples 'CanLookup' diff --git a/spec/models/ticket_spec.rb b/spec/models/ticket_spec.rb index 713f3d328..be362ccba 100644 --- a/spec/models/ticket_spec.rb +++ b/spec/models/ticket_spec.rb @@ -1,5 +1,5 @@ require 'rails_helper' -require 'models/concerns/can_lookup' +require 'models/concerns/can_lookup_examples' RSpec.describe Ticket do include_examples 'CanLookup' diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 6b036a9ed..857dd9dd0 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' require 'models/concerns/has_groups_examples' require 'models/concerns/has_roles_examples' require 'models/concerns/has_groups_permissions_examples' -require 'models/concerns/can_lookup' +require 'models/concerns/can_lookup_examples' RSpec.describe User do let(:group_access_instance) { create(:agent_user) }