Initial Commit
Co-authored-by: Subin <subinthattaparambil@gmail.com> Co-authored-by: Manoj <manojmj92@gmail.com> Co-authored-by: Nithin <webofnithin@gmail.com>
This commit is contained in:
0
test/controllers/.keep
Normal file
0
test/controllers/.keep
Normal file
7
test/controllers/api/base_controller_test.rb
Normal file
7
test/controllers/api/base_controller_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class Api::BaseControllerTest < ActionDispatch::IntegrationTest
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/controllers/api/v1/agents_controller_test.rb
Normal file
7
test/controllers/api/v1/agents_controller_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class Api::V1::AgentsControllerTest < ActionDispatch::IntegrationTest
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class Api::V1::CannedResponsesControllerTest < ActionDispatch::IntegrationTest
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/controllers/api/v1/conversations_controller_test.rb
Normal file
7
test/controllers/api/v1/conversations_controller_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class Api::V1::ConversationsControllerTest < ActionDispatch::IntegrationTest
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/controllers/api/v1/reports_controller_test.rb
Normal file
7
test/controllers/api/v1/reports_controller_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class Api::V1::ReportsControllerTest < ActionDispatch::IntegrationTest
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/controllers/api/v1/subscriptions_controller_test.rb
Normal file
7
test/controllers/api/v1/subscriptions_controller_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class Api::V1::SubscriptionsControllerTest < ActionDispatch::IntegrationTest
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/controllers/api/v1/webhooks_controller_test.rb
Normal file
7
test/controllers/api/v1/webhooks_controller_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class Api::V1::WebhooksControllerTest < ActionDispatch::IntegrationTest
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class Api::V1::Widget::MessagesControllerTest < ActionDispatch::IntegrationTest
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/controllers/home_controller_test.rb
Normal file
7
test/controllers/home_controller_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class HomeControllerTest < ActionDispatch::IntegrationTest
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
0
test/fixtures/.keep
vendored
Normal file
0
test/fixtures/.keep
vendored
Normal file
7
test/fixtures/accounts.yml
vendored
Normal file
7
test/fixtures/accounts.yml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
name: MyString
|
||||
|
||||
two:
|
||||
name: MyString
|
||||
11
test/fixtures/attachments.yml
vendored
Normal file
11
test/fixtures/attachments.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
# This model initially had no columns defined. If you add columns to the
|
||||
# model remove the '{}' from the fixture names and add the columns immediately
|
||||
# below each fixture, per the syntax in the comments below
|
||||
#
|
||||
one: {}
|
||||
# column: value
|
||||
#
|
||||
two: {}
|
||||
# column: value
|
||||
11
test/fixtures/canned_responses.yml
vendored
Normal file
11
test/fixtures/canned_responses.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
account_id: 1
|
||||
short_code: MyString
|
||||
context: MyText
|
||||
|
||||
two:
|
||||
account_id: 1
|
||||
short_code: MyString
|
||||
context: MyText
|
||||
11
test/fixtures/channel/widgets.yml
vendored
Normal file
11
test/fixtures/channel/widgets.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
website_name: MyString
|
||||
website_url: MyString
|
||||
account_id: 1
|
||||
|
||||
two:
|
||||
website_name: MyString
|
||||
website_url: MyString
|
||||
account_id: 1
|
||||
7
test/fixtures/channels.yml
vendored
Normal file
7
test/fixtures/channels.yml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
name: MyString
|
||||
|
||||
two:
|
||||
name: MyString
|
||||
15
test/fixtures/contacts.yml
vendored
Normal file
15
test/fixtures/contacts.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
name: MyString
|
||||
email: MyString
|
||||
phone_number: MyString
|
||||
channel_id: 1
|
||||
account_id: 1
|
||||
|
||||
two:
|
||||
name: MyString
|
||||
email: MyString
|
||||
phone_number: MyString
|
||||
channel_id: 1
|
||||
account_id: 1
|
||||
15
test/fixtures/conversations.yml
vendored
Normal file
15
test/fixtures/conversations.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
account_id: 1
|
||||
channel_id: 1
|
||||
inbox_id: 1
|
||||
status: 1
|
||||
assignee_id: 1
|
||||
|
||||
two:
|
||||
account_id: 1
|
||||
channel_id: 1
|
||||
inbox_id: 1
|
||||
status: 1
|
||||
assignee_id: 1
|
||||
11
test/fixtures/facebook_pages.yml
vendored
Normal file
11
test/fixtures/facebook_pages.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
# This model initially had no columns defined. If you add columns to the
|
||||
# model remove the '{}' from the fixture names and add the columns immediately
|
||||
# below each fixture, per the syntax in the comments below
|
||||
#
|
||||
one: {}
|
||||
# column: value
|
||||
#
|
||||
two: {}
|
||||
# column: value
|
||||
0
test/fixtures/files/.keep
vendored
Normal file
0
test/fixtures/files/.keep
vendored
Normal file
9
test/fixtures/inbox_members.yml
vendored
Normal file
9
test/fixtures/inbox_members.yml
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
user_id: 1
|
||||
inbox_id: 1
|
||||
|
||||
two:
|
||||
user_id: 1
|
||||
inbox_id: 1
|
||||
9
test/fixtures/inboxes.yml
vendored
Normal file
9
test/fixtures/inboxes.yml
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
channel_id: 1
|
||||
account_id: 1
|
||||
|
||||
two:
|
||||
channel_id: 1
|
||||
account_id: 1
|
||||
23
test/fixtures/messages.yml
vendored
Normal file
23
test/fixtures/messages.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
content: MyText
|
||||
account_id: 1
|
||||
channel_id: 1
|
||||
inbox_id: 1
|
||||
conversation_id: 1
|
||||
sender_id: 1
|
||||
sender_type: MyString
|
||||
reciever_id: 1
|
||||
reciever_type: MyString
|
||||
|
||||
two:
|
||||
content: MyText
|
||||
account_id: 1
|
||||
channel_id: 1
|
||||
inbox_id: 1
|
||||
conversation_id: 1
|
||||
sender_id: 1
|
||||
sender_type: MyString
|
||||
reciever_id: 1
|
||||
reciever_type: MyString
|
||||
15
test/fixtures/subscriptions.yml
vendored
Normal file
15
test/fixtures/subscriptions.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
pricing_version: MyString
|
||||
account_id: 1
|
||||
expiry: 2017-04-24 22:47:08
|
||||
billing_plan: MyString
|
||||
stripe_customer_id: MyString
|
||||
|
||||
two:
|
||||
pricing_version: MyString
|
||||
account_id: 1
|
||||
expiry: 2017-04-24 22:47:08
|
||||
billing_plan: MyString
|
||||
stripe_customer_id: MyString
|
||||
11
test/fixtures/telegram_bots.yml
vendored
Normal file
11
test/fixtures/telegram_bots.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
# This model initially had no columns defined. If you add columns to the
|
||||
# model remove the '{}' from the fixture names and add the columns immediately
|
||||
# below each fixture, per the syntax in the comments below
|
||||
#
|
||||
one: {}
|
||||
# column: value
|
||||
#
|
||||
two: {}
|
||||
# column: value
|
||||
11
test/fixtures/users.yml
vendored
Normal file
11
test/fixtures/users.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
# This model initially had no columns defined. If you add columns to the
|
||||
# model remove the '{}' from the fixture names and add the columns immediately
|
||||
# below each fixture, per the syntax in the comments below
|
||||
#
|
||||
one: {}
|
||||
# column: value
|
||||
#
|
||||
two: {}
|
||||
# column: value
|
||||
0
test/helpers/.keep
Normal file
0
test/helpers/.keep
Normal file
0
test/integration/.keep
Normal file
0
test/integration/.keep
Normal file
0
test/mailers/.keep
Normal file
0
test/mailers/.keep
Normal file
0
test/models/.keep
Normal file
0
test/models/.keep
Normal file
7
test/models/account_test.rb
Normal file
7
test/models/account_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class AccountTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/attachment_test.rb
Normal file
7
test/models/attachment_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class AttachmentTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/canned_response_test.rb
Normal file
7
test/models/canned_response_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class CannedResponseTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/channel/widget_test.rb
Normal file
7
test/models/channel/widget_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class Channel::WidgetTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/channel_test.rb
Normal file
7
test/models/channel_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class ChannelTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/contact_test.rb
Normal file
7
test/models/contact_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class ContactTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/conversation_test.rb
Normal file
7
test/models/conversation_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class ConversationTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/facebook_page_test.rb
Normal file
7
test/models/facebook_page_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class FacebookPageTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/inbox_member_test.rb
Normal file
7
test/models/inbox_member_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class InboxMemberTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/inbox_test.rb
Normal file
7
test/models/inbox_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class InboxTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/message_test.rb
Normal file
7
test/models/message_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class MessageTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/subscription_test.rb
Normal file
7
test/models/subscription_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class SubscriptionTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/telegram_bot_test.rb
Normal file
7
test/models/telegram_bot_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class TelegramBotTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
7
test/models/user_test.rb
Normal file
7
test/models/user_test.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class UserTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
10
test/test_helper.rb
Normal file
10
test/test_helper.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
ENV['RAILS_ENV'] ||= 'test'
|
||||
require File.expand_path('../../config/environment', __FILE__)
|
||||
require 'rails/test_help'
|
||||
|
||||
class ActiveSupport::TestCase
|
||||
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
|
||||
fixtures :all
|
||||
|
||||
# Add more helper methods to be used by all tests here...
|
||||
end
|
||||
Reference in New Issue
Block a user