summaryrefslogtreecommitdiff
path: root/spec/rubyspec/library/getoptlong/initialize_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubyspec/library/getoptlong/initialize_spec.rb')
-rw-r--r--spec/rubyspec/library/getoptlong/initialize_spec.rb28
1 files changed, 0 insertions, 28 deletions
diff --git a/spec/rubyspec/library/getoptlong/initialize_spec.rb b/spec/rubyspec/library/getoptlong/initialize_spec.rb
deleted file mode 100644
index 6ac46b8b5d..0000000000
--- a/spec/rubyspec/library/getoptlong/initialize_spec.rb
+++ /dev/null
@@ -1,28 +0,0 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require 'getoptlong'
-
-describe "GetoptLong#initialize" do
- it "sets ordering to REQUIRE_ORDER if ENV['POSIXLY_CORRECT'] is set" do
- begin
- old_env_value = ENV["POSIXLY_CORRECT"]
- ENV["POSIXLY_CORRECT"] = ""
-
- opt = GetoptLong.new
- opt.ordering.should == GetoptLong::REQUIRE_ORDER
- ensure
- ENV["POSIXLY_CORRECT"] = old_env_value
- end
- end
-
- it "sets ordering to PERMUTE if ENV['POSIXLY_CORRECT'] is not set" do
- begin
- old_env_value = ENV["POSIXLY_CORRECT"]
- ENV["POSIXLY_CORRECT"] = nil
-
- opt = GetoptLong.new
- opt.ordering.should == GetoptLong::PERMUTE
- ensure
- ENV["POSIXLY_CORRECT"] = old_env_value
- end
- end
-end