Skip to content

Commit

Permalink
test: drop usage of require_relative to code in lib (#649)
Browse files Browse the repository at this point in the history
In Debian and in other QA efforts, one might want to run the test suite
against the code that is installed on the system (as opposed to the one
in the source tree). Using require_relative like this prevents that from
working.
  • Loading branch information
terceiro committed Feb 4, 2020
1 parent f7e0251 commit 1b596e1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/printers/plain_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require_relative "../test_helper"
require "minitest/mock"
require_relative "../../lib/byebug/helpers/string"
require "byebug/helpers/string"

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

require_relative "test_helper"
require_relative "../lib/byebug/runner"
require "byebug/runner"

module Byebug
class RcTest < TestCase
Expand Down
2 changes: 1 addition & 1 deletion test/runner_against_valid_program_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

require_relative "test_helper"
require_relative "../lib/byebug/version"
require "byebug/version"

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

require_relative "test_helper"
require_relative "../lib/byebug/version"
require "byebug/version"

module Byebug
#
Expand Down
6 changes: 3 additions & 3 deletions test/support/test_case.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# frozen_string_literal: true

require "minitest"
require_relative "../../lib/byebug"
require_relative "../../lib/byebug/core"
require_relative "../../lib/byebug/interfaces/test_interface"
require "byebug"
require "byebug/core"
require "byebug/interfaces/test_interface"
require_relative "utils"

module Byebug
Expand Down

0 comments on commit 1b596e1

Please sign in to comment.