aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/library/readline/constants_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/readline/constants_spec.rb')
-rw-r--r--spec/ruby/library/readline/constants_spec.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/ruby/library/readline/constants_spec.rb b/spec/ruby/library/readline/constants_spec.rb
new file mode 100644
index 0000000000..226a3509b9
--- /dev/null
+++ b/spec/ruby/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