diff options
Diffstat (limited to 'spec/rubyspec/library/readline/constants_spec.rb')
-rw-r--r-- | spec/rubyspec/library/readline/constants_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/rubyspec/library/readline/constants_spec.rb b/spec/rubyspec/library/readline/constants_spec.rb new file mode 100644 index 0000000000..226a3509b9 --- /dev/null +++ b/spec/rubyspec/library/readline/constants_spec.rb @@ -0,0 +1,18 @@ +require File.expand_path('../spec_helper', __FILE__) + +with_feature :readline do + # Note: additional specs for HISTORY are in 'history' subdir. + describe "Readline::HISTORY" do + it "is defined" do + Readline.const_defined?(:HISTORY).should == true + end + end + + describe "Readline::VERSION" do + it "is defined and is a non-empty String" do + Readline.const_defined?(:VERSION).should == true + Readline::VERSION.should be_kind_of(String) + Readline::VERSION.should_not be_empty + end + end +end |