summaryrefslogtreecommitdiff
path: root/spec/ruby/core/io/constants_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/io/constants_spec.rb')
-rw-r--r--spec/ruby/core/io/constants_spec.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/ruby/core/io/constants_spec.rb b/spec/ruby/core/io/constants_spec.rb
new file mode 100644
index 0000000000..0a2ea70560
--- /dev/null
+++ b/spec/ruby/core/io/constants_spec.rb
@@ -0,0 +1,19 @@
+require File.expand_path('../../../spec_helper', __FILE__)
+
+describe "IO::SEEK_SET" do
+ it "is defined" do
+ IO.const_defined?(:SEEK_SET).should == true
+ end
+end
+
+describe "IO::SEEK_CUR" do
+ it "is defined" do
+ IO.const_defined?(:SEEK_CUR).should == true
+ end
+end
+
+describe "IO::SEEK_END" do
+ it "is defined" do
+ IO.const_defined?(:SEEK_END).should == true
+ end
+end