summaryrefslogtreecommitdiff
path: root/spec/rubyspec/library/readline/completer_word_break_characters_spec.rb
blob: 2e0cc277a6400f4ce6c337db8b320622c4470da5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require File.expand_path('../spec_helper', __FILE__)

with_feature :readline do
  describe "Readline.completer_word_break_characters" do
    it "returns nil" do
      Readline.completer_word_break_characters.should be_nil
    end
  end

  describe "Readline.completer_word_break_characters=" do
    it "returns the passed string" do
      Readline.completer_word_break_characters = "test"
      Readline.completer_word_break_characters.should == "test"
    end
  end
end