chore: Limit objects returned by conversation API (#2721)

This commit is contained in:
Sojan Jose
2021-07-31 21:19:42 +05:30
committed by GitHub
parent 915366c472
commit 2890339734
15 changed files with 19 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
require 'rails_helper'
require Rails.root.join 'spec/models/concerns/access_tokenable_spec.rb'
require Rails.root.join 'spec/models/concerns/access_tokenable_shared.rb'
RSpec.describe AgentBot, type: :model do
describe 'associations' do

View File

@@ -1,7 +1,7 @@
# frozen_string_literal: true
require 'rails_helper'
require Rails.root.join 'spec/models/concerns/reauthorizable_spec.rb'
require Rails.root.join 'spec/models/concerns/reauthorizable_shared.rb'
RSpec.describe Channel::FacebookPage do
let(:channel) { create(:channel_facebook_page) }

View File

@@ -1,8 +1,8 @@
# frozen_string_literal: true
require 'rails_helper'
require Rails.root.join 'spec/models/concerns/assignment_handler_spec.rb'
require Rails.root.join 'spec/models/concerns/round_robin_handler_spec.rb'
require Rails.root.join 'spec/models/concerns/assignment_handler_shared.rb'
require Rails.root.join 'spec/models/concerns/round_robin_handler_shared.rb'
RSpec.describe Conversation, type: :model do
describe 'associations' do

View File

@@ -1,7 +1,7 @@
# frozen_string_literal: true
require 'rails_helper'
require Rails.root.join 'spec/models/concerns/out_of_offisable_spec.rb'
require Rails.root.join 'spec/models/concerns/out_of_offisable_shared.rb'
RSpec.describe Inbox do
describe 'validations' do

View File

@@ -1,7 +1,7 @@
# frozen_string_literal: true
require 'rails_helper'
require Rails.root.join 'spec/models/concerns/access_tokenable_spec.rb'
require Rails.root.join 'spec/models/concerns/access_tokenable_shared.rb'
RSpec.describe PlatformApp do
let(:platform_app) { create(:platform_app) }

View File

@@ -1,7 +1,7 @@
# frozen_string_literal: true
require 'rails_helper'
require Rails.root.join 'spec/models/concerns/access_tokenable_spec.rb'
require Rails.root.join 'spec/models/concerns/access_tokenable_shared.rb'
RSpec.describe User do
let!(:user) { create(:user) }