Skip to content

Commit

Permalink
Merge pull request #103 from ignacio-chiazzo/refactor-path
Browse files Browse the repository at this point in the history
Refactor path
  • Loading branch information
ignacio-chiazzo authored Sep 15, 2023
2 parents 4cb6dcf + 3a44d72 commit 4794f00
Show file tree
Hide file tree
Showing 15 changed files with 54 additions and 54 deletions.
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: true
# frozen_string_literal: true

$LOAD_PATH.unshift File.expand_path('../lib', __dir__)
$LOAD_PATH.unshift File.expand_path('../lib/whatsapp_sdk', __dir__)

require "minitest/autorun"
require "minitest/assertions"
Expand Down
2 changes: 1 addition & 1 deletion test/whatsapp/api/api_configuration_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

require 'test_helper'
require_relative '../../../lib/whatsapp_sdk/api/client'
require 'api/client'

module WhatsappSdk
module Api
Expand Down
4 changes: 2 additions & 2 deletions test/whatsapp/api/business_profile_test.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# typed: true
# frozen_string_literal: true

require_relative '../../../lib/whatsapp_sdk/api/business_profile'
require_relative '../../../lib/whatsapp_sdk/api/client'
require 'api/business_profile'
require 'api/client'

module WhatsappSdk
module Api
Expand Down
4 changes: 2 additions & 2 deletions test/whatsapp/api/client_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# frozen_string_literal: true

require 'test_helper'
require_relative '../../../lib/whatsapp_sdk/api/client'
require_relative '../../../lib/whatsapp_sdk/api/api_configuration'
require 'api/client'
require 'api/api_configuration'

module WhatsappSdk
module Api
Expand Down
4 changes: 2 additions & 2 deletions test/whatsapp/api/medias_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# frozen_string_literal: true

require "test_helper"
require_relative '../../../lib/whatsapp_sdk/api/medias'
require_relative '../../../lib/whatsapp_sdk/api/client'
require 'api/medias'
require 'api/client'

module WhatsappSdk
module Api
Expand Down
38 changes: 19 additions & 19 deletions test/whatsapp/api/messages_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@
# frozen_string_literal: true

require "test_helper"
require_relative '../../../lib/whatsapp_sdk/api/responses/read_message_data_response'
require_relative '../../../lib/whatsapp_sdk/api/messages'
require_relative '../../../lib/whatsapp_sdk/resource/address_type'
require_relative '../../../lib/whatsapp_sdk/resource/address'
require_relative '../../../lib/whatsapp_sdk/resource/contact'
require_relative '../../../lib/whatsapp_sdk/resource/interactive'
require_relative '../../../lib/whatsapp_sdk/resource/interactive_action'
require_relative '../../../lib/whatsapp_sdk/resource/interactive_action_reply_button'
require_relative '../../../lib/whatsapp_sdk/resource/interactive_action_section'
require_relative '../../../lib/whatsapp_sdk/resource/interactive_action_section_row'
require_relative '../../../lib/whatsapp_sdk/resource/interactive_body'
require_relative '../../../lib/whatsapp_sdk/resource/interactive_footer'
require_relative '../../../lib/whatsapp_sdk/resource/interactive_header'
require_relative '../../../lib/whatsapp_sdk/resource/phone_number'
require_relative '../../../lib/whatsapp_sdk/resource/url'
require_relative '../../../lib/whatsapp_sdk/resource/email'
require_relative '../../../lib/whatsapp_sdk/resource/org'
require_relative '../../../lib/whatsapp_sdk/resource/name'
require_relative '../../../lib/whatsapp_sdk/api/client'
require 'api/responses/read_message_data_response'
require 'api/messages'
require 'resource/address_type'
require 'resource/address'
require 'resource/contact'
require 'resource/interactive'
require 'resource/interactive_action'
require 'resource/interactive_action_reply_button'
require 'resource/interactive_action_section'
require 'resource/interactive_action_section_row'
require 'resource/interactive_body'
require 'resource/interactive_footer'
require 'resource/interactive_header'
require 'resource/phone_number'
require 'resource/url'
require 'resource/email'
require 'resource/org'
require 'resource/name'
require 'api/client'
require_relative '../contact_helper'

module WhatsappSdk
Expand Down
6 changes: 3 additions & 3 deletions test/whatsapp/api/phone_numbers_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# frozen_string_literal: true

require "test_helper"
require_relative '../../../lib/whatsapp_sdk/api/phone_numbers'
require_relative '../../../lib/whatsapp_sdk/resource/contact_response'
require_relative '../../../lib/whatsapp_sdk/api/client'
require 'api/phone_numbers'
require 'resource/contact_response'
require 'api/client'

module WhatsappSdk
module Api
Expand Down
2 changes: 1 addition & 1 deletion test/whatsapp/resource/button_parameter_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

require "test_helper"
require_relative '../../../lib/whatsapp_sdk/resource/button_parameter'
require 'resource/button_parameter'

module WhatsappSdk
module Resource
Expand Down
10 changes: 5 additions & 5 deletions test/whatsapp/resource/component_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# frozen_string_literal: true

require "test_helper"
require_relative '../../../lib/whatsapp_sdk/resource/parameter_object'
require_relative '../../../lib/whatsapp_sdk/resource/media'
require_relative '../../../lib/whatsapp_sdk/resource/date_time'
require_relative '../../../lib/whatsapp_sdk/resource/currency'
require_relative '../../../lib/whatsapp_sdk/resource/component'
require 'resource/parameter_object'
require 'resource/media'
require 'resource/date_time'
require 'resource/currency'
require 'resource/component'

module WhatsappSdk
module Resource
Expand Down
2 changes: 1 addition & 1 deletion test/whatsapp/resource/currency_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

require "test_helper"
require_relative '../../../lib/whatsapp_sdk/resource/currency'
require 'resource/currency'

module WhatsappSdk
module Resource
Expand Down
2 changes: 1 addition & 1 deletion test/whatsapp/resource/date_time_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

require "test_helper"
require_relative '../../../lib/whatsapp_sdk/resource/date_time'
require 'resource/date_time'

module WhatsappSdk
module Resource
Expand Down
16 changes: 8 additions & 8 deletions test/whatsapp/resource/interactive_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# frozen_string_literal: true

require "test_helper"
require_relative '../../../lib/whatsapp_sdk/resource/interactive'
require_relative '../../../lib/whatsapp_sdk/resource/interactive_action'
require_relative '../../../lib/whatsapp_sdk/resource/interactive_action_reply_button'
require_relative '../../../lib/whatsapp_sdk/resource/interactive_action_section'
require_relative '../../../lib/whatsapp_sdk/resource/interactive_action_section_row'
require_relative '../../../lib/whatsapp_sdk/resource/interactive_body'
require_relative '../../../lib/whatsapp_sdk/resource/interactive_footer'
require_relative '../../../lib/whatsapp_sdk/resource/interactive_header'
require 'resource/interactive'
require 'resource/interactive_action'
require 'resource/interactive_action_reply_button'
require 'resource/interactive_action_section'
require 'resource/interactive_action_section_row'
require 'resource/interactive_body'
require 'resource/interactive_footer'
require 'resource/interactive_header'

module WhatsappSdk
module Resource
Expand Down
2 changes: 1 addition & 1 deletion test/whatsapp/resource/media_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

require "test_helper"
require_relative '../../../lib/whatsapp_sdk/resource/media'
require 'resource/media'

module WhatsappSdk
module Resource
Expand Down
12 changes: 6 additions & 6 deletions test/whatsapp/resource/parameter_object_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# frozen_string_literal: true

require "test_helper"
require_relative '../../../lib/whatsapp_sdk/resource/parameter_object'
require_relative '../../../lib/whatsapp_sdk/resource/media'
require_relative '../../../lib/whatsapp_sdk/resource/date_time'
require_relative '../../../lib/whatsapp_sdk/resource/currency'
require_relative '../../../lib/whatsapp_sdk/error'
require_relative '../../../lib/whatsapp_sdk/resource/errors'
require 'resource/parameter_object'
require 'resource/media'
require 'resource/date_time'
require 'resource/currency'
require 'error'
require 'resource/errors'

module WhatsappSdk
module Resource
Expand Down
2 changes: 1 addition & 1 deletion test/whatsapp/version_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

require "test_helper"
require_relative '../../lib/whatsapp_sdk/version'
require 'version'

class VersionTest < Minitest::Test
def test_that_it_has_a_version_number
Expand Down

0 comments on commit 4794f00

Please sign in to comment.