Skip to content

Commit

Permalink
Stop using run_rbs in subtract test
Browse files Browse the repository at this point in the history
  • Loading branch information
soutaro committed Nov 14, 2023
1 parent abecada commit df83db5
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions test/rbs/cli_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1027,15 +1027,18 @@ def x: () -> untyped
end
RBS

stdout, stderr = run_rbs('subtract', minuend.to_s, subtrahend.to_s)
assert_empty stderr
assert_equal <<~RBS, stdout
use A::B
with_cli do |cli|
cli.run(['subtract', minuend.to_s, subtrahend.to_s])

class C
def y: () -> untyped
end
RBS
assert_empty cli.stderr.string
assert_equal <<~RBS, stdout.string
use A::B
class C
def y: () -> untyped
end
RBS
end
end
end

Expand Down

0 comments on commit df83db5

Please sign in to comment.