diff --git a/test/slop_test.rb b/test/slop_test.rb
index <HASH>..<HASH> 100644
--- a/test/slop_test.rb
+++ b/test/slop_test.rb
@@ -90,4 +90,13 @@ class SlopTest < TestCase
     refute slop[:debug]
     refute slop.debug?
   end
+
+  test 'raises if an option expects an argument and none is given' do
+    slop = Slop.new
+    slop.opt :name, true
+    slop.opt :age, :optional => true
+    
+    assert_raises(Slop::MissingArgumentError, /name/) { slop.parse %w/--name/ }
+    assert slop.parse %w/--name 'foo'/
+  end
 end
added tests for raising if no option is given when one is expected