Sha256: c948cf51c51162b214530edbeb5c08f42a1b0212726d0e9c1d0591fb08774ae0
Contents?: true
Size: 620 Bytes
Versions: 3
Compression:
Stored size: 620 Bytes
Contents
process_is_foreground do with_feature :readline do require 'readline' describe "Readline.completion_proc" do it "returns nil" do Readline.completion_proc.should be_nil end end describe "Readline.completion_proc=" do it "returns the passed Proc" do proc = Proc.new do |e| end Readline.completion_proc = proc Readline.completion_proc.should == proc end it "returns an ArgumentError if not given an Proc or #call" do lambda { Readline.completion_proc = "test" }.should raise_error(ArgumentError) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubysl-readline-1.0.1 | spec/completion_proc_spec.rb |
rubysl-readline-2.0.2 | spec/completion_proc_spec.rb |
rubysl-readline-1.0.0 | spec/completion_proc_spec.rb |