Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a file in our control to test the -r flag #563

Merged
merged 1 commit into from
May 28, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/runner_against_valid_program_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ def test_run_with_no_quit_flag

def test_run_with_require_flag
stdout = run_byebug(
"-r", "abbrev", example_path,
"-r", example_path, example_path,
input: \
'puts "Abbrev loaded? #{$LOADED_FEATURES.last.include?(\'abbrev\')}"'
"puts \"Abbrev loaded? \#{$LOADED_FEATURES.last == '#{example_path}'}\""
)

assert_match(/Abbrev loaded\? true/, stdout)
Expand Down