summaryrefslogtreecommitdiff
path: root/spec/rubyspec/library/readline/basic_word_break_characters_spec.rb
blob: c2ec6cede71cff1322cb876f8aab58fcbcbb8ae7 (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.basic_word_break_characters" do
    it "returns not nil" do
      Readline.basic_word_break_characters.should_not be_nil
    end
  end

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