Skip to content

Commit

Permalink
Merge pull request #8 from aycabta/omit-editline-on-without-tty-test
Browse files Browse the repository at this point in the history
Omit Editline on without tty test
  • Loading branch information
aycabta authored Sep 2, 2021
2 parents 7d74918 + c8fa58d commit e4eccc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ jobs:
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: bundle install
run: |
bundle install
gem install reline --pre
- name: Run test
run: rake compile test
- name: Run test with libedit enabled
Expand Down
1 change: 1 addition & 0 deletions test/readline/test_readline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,7 @@ def test_completion_quote_character_after_completion
end

def test_without_tty
omit "Skip Editline" if /EditLine/n.match(Readline::VERSION)
loader = nil
if defined?(TestReadline) && self.class == TestReadline
loader = "use_ext_readline"
Expand Down

0 comments on commit e4eccc7

Please sign in to comment.