Skip to content

Commit 305389b

Browse files
authored
Merge pull request #2128 from Shopify/repo-name-in-tests
Un-hardcode repo name in test suite
2 parents 1a3ab85 + c53d9a9 commit 305389b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

test/rbs/cli_test.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ def test_method
252252
assert_includes stdout.string, 'accessibility: public'
253253
assert_includes stdout.string, 'types:'
254254
assert_includes stdout.string, ' () -> ::Enumerator[self, untyped]'
255-
assert_includes stdout.string, 'rbs/core/kernel.rbs'
255+
assert_includes stdout.string, 'core/kernel.rbs'
256256
assert_includes stdout.string, '| [T] () { (self) -> T } -> T'
257-
assert_includes stdout.string, 'rbs/core/kernel.rbs'
257+
assert_includes stdout.string, 'core/kernel.rbs'
258258
end
259259

260260
Dir.mktmpdir do |dir|
@@ -855,8 +855,8 @@ def test_version
855855
def test_paths
856856
with_cli do |cli|
857857
cli.run(%w(-r pathname -I no-such-dir paths))
858-
assert_match %r{/rbs/core \(dir, core\)$}, stdout.string
859-
assert_match %r{/rbs/stdlib/pathname/0 \(dir, library, name=pathname\)$}, stdout.string
858+
assert_match %r{/core \(dir, core\)$}, stdout.string
859+
assert_match %r{/stdlib/pathname/0 \(dir, library, name=pathname\)$}, stdout.string
860860
assert_match %r{^no-such-dir \(absent\)$}, stdout.string
861861
end
862862
end
@@ -866,7 +866,7 @@ def test_paths_with_gem
866866

867867
with_cli do |cli|
868868
cli.run(%w(-r rbs-amber paths))
869-
assert_match %r{/rbs/core \(dir, core\)$}, stdout.string
869+
assert_match %r{/core \(dir, core\)$}, stdout.string
870870
assert_match %r{/sig \(dir, library, name=rbs-amber\)$}, stdout.string
871871
end
872872
end

test/rbs/collection/installer_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def test_install_from_gem_sig_dir
105105

106106
assert dest.directory?
107107
assert dest.glob('*').empty? # because rubygems installer does nothing
108-
assert_match(%r!Using rbs-amber:1.0.0 \(.+/rbs/test/assets/test-gem/sig\)!, stdout.string)
108+
assert_match(%r!Using rbs-amber:1.0.0 \(.+/test/assets/test-gem/sig\)!, stdout.string)
109109
assert_match("It's done! 1 gems' RBSs now installed.", stdout.string)
110110
end
111111
end

test/rbs/test/runtime_test_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def refute_test_success(other_env: {}, rbs_content: nil, ruby_content: nil)
9494

9595
def test_test_target
9696
output = refute_test_success(other_env: { "RBS_TEST_TARGET" => nil })
97-
assert_match "rbs/test/setup handles the following environment variables:", output
97+
assert_match "test/setup handles the following environment variables:", output
9898
end
9999

100100
def test_no_test_install

0 commit comments

Comments
 (0)