summaryrefslogtreecommitdiff
path: root/spec/rubyspec/command_line/dash_upper_i_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubyspec/command_line/dash_upper_i_spec.rb')
-rw-r--r--spec/rubyspec/command_line/dash_upper_i_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/rubyspec/command_line/dash_upper_i_spec.rb b/spec/rubyspec/command_line/dash_upper_i_spec.rb
new file mode 100644
index 0000000000..0a00059949
--- /dev/null
+++ b/spec/rubyspec/command_line/dash_upper_i_spec.rb
@@ -0,0 +1,11 @@
+require File.expand_path('../../spec_helper', __FILE__)
+
+describe "The -I command line option" do
+ before :each do
+ @script = fixture __FILE__, "loadpath.rb"
+ end
+
+ it "adds the path to the load path ($:)" do
+ ruby_exe(@script, options: "-I fixtures").should include("fixtures")
+ end
+end