[macruby-changes] [4650] DietRB/trunk/spec/context_spec.rb
source_changes at macosforge.org
source_changes at macosforge.org
Fri Oct 8 03:54:09 PDT 2010
Revision: 4650
http://trac.macosforge.org/projects/ruby/changeset/4650
Author: eloy.de.enige at gmail.com
Date: 2010-10-08 03:54:08 -0700 (Fri, 08 Oct 2010)
Log Message:
-----------
Simplify a test.
From: Eloy Duran <eloy.de.enige at gmail.com>
Modified Paths:
--------------
DietRB/trunk/spec/context_spec.rb
Modified: DietRB/trunk/spec/context_spec.rb
===================================================================
--- DietRB/trunk/spec/context_spec.rb 2010-10-08 10:54:00 UTC (rev 4649)
+++ DietRB/trunk/spec/context_spec.rb 2010-10-08 10:54:08 UTC (rev 4650)
@@ -130,10 +130,10 @@
@context.process_line("def foo")
def Readline.readline(*args)
- def Readline.readline(*args)
- nil
+ unless @raised
+ @raised = true
+ raise Interrupt
end
- raise Interrupt
end
lambda { @context.run }.should.not.raise Interrupt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101008/56473d74/attachment.html>
More information about the macruby-changes
mailing list