add: $/Merlin_External/Languages/IronRuby/mspec/ironruby-tags/command_line/dash_r_tags.txt
File: dash_r_tags.txt
===================================================================
--- [no source file]
+++ Shelved Change: $/Merlin_External/Languages/IronRuby/mspec/ironruby-tags/command_line/dash_r_tags.txt;command_line
@@ -1,0 +1,1 @@
+fails:The -r command line option requires the specified file
===================================================================
add: $/Merlin_External/Languages/IronRuby/mspec/rubyspec/command_line/dash_d_spec.rb
File: dash_d_spec.rb
===================================================================
--- [no source file]
+++ Shelved Change: $/Merlin_External/Languages/IronRuby/mspec/rubyspec/command_line/dash_d_spec.rb;command_line
@@ -1,0 +1,7 @@
+require File.dirname(__FILE__) + '/../spec_helper'
+
+describe "The -d command line option" do
+  it "sets $DEBUG to true" do
+    ruby_exe("fixtures/debug.rb", :options => "-d").chomp.should == "true"
+  end
+end
===================================================================
add: $/Merlin_External/Languages/IronRuby/mspec/rubyspec/command_line/dash_r_spec.rb
File: dash_r_spec.rb
===================================================================
--- [no source file]
+++ Shelved Change: $/Merlin_External/Languages/IronRuby/mspec/rubyspec/command_line/dash_r_spec.rb;command_line
@@ -1,0 +1,7 @@
+require File.dirname(__FILE__) + '/../spec_helper'
+
+describe "The -r command line option" do
+  it "requires the specified file" do
+    ruby_exe("fixtures/require.rb", :options => "-r fixtures/test_file").chomp.should include("fixtures/test_file.rb")
+  end
+end
===================================================================
add: $/Merlin_External/Languages/IronRuby/mspec/rubyspec/command_line/dash_upper_i_spec.rb
File: dash_upper_i_spec.rb
===================================================================
--- [no source file]
+++ Shelved Change: $/Merlin_External/Languages/IronRuby/mspec/rubyspec/command_line/dash_upper_i_spec.rb;command_line
@@ -1,0 +1,7 @@
+require File.dirname(__FILE__) + '/../spec_helper'
+
+describe "The -I command line option" do
+  it "adds the path to the load path ($:)" do
+    ruby_exe("fixtures/loadpath.rb", :options => "-I fixtures").chomp.should include("fixtures")
+  end
+end
===================================================================
add: $/Merlin_External/Languages/IronRuby/mspec/rubyspec/command_line/dash_upper_w_spec.rb
File: dash_upper_w_spec.rb
===================================================================
--- [no source file]
+++ Shelved Change: $/Merlin_External/Languages/IronRuby/mspec/rubyspec/command_line/dash_upper_w_spec.rb;command_line
@@ -1,0 +1,16 @@
+require File.dirname(__FILE__) + '/../spec_helper'
+require File.dirname(__FILE__) + '/shared/verbose'
+
+describe "The -W command line option" do
+  it "with 0 sets $VERBOSE to nil" do
+    ruby_exe("fixtures/verbose.rb", :options => "-W0").chomp.should == "nil"
+  end
+
+  it "with 1 sets $VERBOSE to false" do
+    ruby_exe("fixtures/verbose.rb", :options => "-W1").chomp.should == "false"
+  end
+end
+
+describe "The -W command line option with 2" do
+  it_behaves_like "sets $VERBOSE to true", "-W2"
+end
===================================================================
add: $/Merlin_External/Languages/IronRuby/mspec/rubyspec/command_line/dash_v_spec.rb
File: dash_v_spec.rb
===================================================================
--- [no source file]
+++ Shelved Change: $/Merlin_External/Languages/IronRuby/mspec/rubyspec/command_line/dash_v_spec.rb;command_line
@@ -1,0 +1,5 @@
+require File.dirname(__FILE__) + '/../spec_helper'
+
+describe "The -v command line option" do
+  it_behaves_like "sets $VERBOSE to true", "-v"
+end
===================================================================
add: $/Merlin_External/Languages/IronRuby/mspec/rubyspec/command_line/dash_w_spec.rb
File: dash_w_spec.rb
===================================================================
--- [no source file]
+++ Shelved Change: $/Merlin_External/Languages/IronRuby/mspec/rubyspec/command_line/dash_w_spec.rb;command_line
@@ -1,0 +1,5 @@
+require File.dirname(__FILE__) + '/../spec_helper'
+
+describe "The -w command line option" do
+  it_behaves_like "sets $VERBOSE to true", "-w"
+end
===================================================================
add: $/Merlin_External/Languages/IronRuby/mspec/rubyspec/command_line/fixtures
add: $/Merlin_External/Languages/IronRuby/mspec/rubyspec/command_line/shared
add: $/Merlin_External/Languages/IronRuby/mspec/rubyspec/command_line/fixtures/debug.rb
File: debug.rb
===================================================================
--- [no source file]
+++ Shelved Change: $/Merlin_External/Languages/IronRuby/mspec/rubyspec/command_line/fixtures/debug.rb;command_line
@@ -1,0 +1,1 @@
+puts $DEBUG
===================================================================
add: $/Merlin_External/Languages/IronRuby/mspec/rubyspec/command_line/fixtures/loadpath.rb
File: loadpath.rb
===================================================================
--- [no source file]
+++ Shelved Change: $/Merlin_External/Languages/IronRuby/mspec/rubyspec/command_line/fixtures/loadpath.rb;command_line
@@ -1,0 +1,1 @@
+puts $:
===================================================================
add: $/Merlin_External/Languages/IronRuby/mspec/rubyspec/command_line/fixtures/require.rb
File: require.rb
===================================================================
--- [no source file]
+++ Shelved Change: $/Merlin_External/Languages/IronRuby/mspec/rubyspec/command_line/fixtures/require.rb;command_line
@@ -1,0 +1,1 @@
+puts $"
===================================================================
add: $/Merlin_External/Languages/IronRuby/mspec/rubyspec/command_line/fixtures/test_file.rb
File: test_file.rb
===================================================================
--- [no source file]
+++ Shelved Change: $/Merlin_External/Languages/IronRuby/mspec/rubyspec/command_line/fixtures/test_file.rb;command_line
@@ -1,0 +1,1 @@
+"test file"
===================================================================
add: $/Merlin_External/Languages/IronRuby/mspec/rubyspec/command_line/fixtures/verbose.rb
File: verbose.rb
===================================================================
--- [no source file]
+++ Shelved Change: $/Merlin_External/Languages/IronRuby/mspec/rubyspec/command_line/fixtures/verbose.rb;command_line
@@ -1,0 +1,1 @@
+puts $VERBOSE
===================================================================
add: $/Merlin_External/Languages/IronRuby/mspec/rubyspec/command_line/shared/verbose.rb
File: verbose.rb
===================================================================
--- [no source file]
+++ Shelved Change: $/Merlin_External/Languages/IronRuby/mspec/rubyspec/command_line/shared/verbose.rb;command_line
@@ -1,0 +1,5 @@
+describe "sets $VERBOSE to true", :shared => true do
+  it "sets $VERBOSE to true" do
+    ruby_exe("fixtures/verbose.rb", :options => @method).chomp.match(/true$/).should_not == nil
+  end
+end
===================================================================
