Skip to content

Commit

Permalink
add dialog configuration test
Browse files Browse the repository at this point in the history
  • Loading branch information
pocari committed Jun 25, 2022
1 parent 6b82725 commit d0559f8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/reline/test_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -408,4 +408,19 @@ def test_relative_xdg_config_home
ENV['XDG_CONFIG_HOME'] = xdg_config_home_backup
ENV['HOME'] = home_backup
end

def test_dialog_configurations
@config.read_lines(<<~LINES.lines)
set dialog-default-bg-color 1
set dialog-pointer-bg-color 2
set dialog-default-fg-color 3
set dialog-pointer-fg-color 4
LINES

assert_equal 1, @config.dialog_default_bg_color
assert_equal 2, @config.dialog_pointer_bg_color
assert_equal 3, @config.dialog_default_fg_color
assert_equal 4, @config.dialog_pointer_fg_color
end
end

0 comments on commit d0559f8

Please sign in to comment.