[macruby-changes] [4721] DietRB/trunk/spec/context_spec.rb
source_changes at macosforge.org
source_changes at macosforge.org
Fri Oct 8 04:04:40 PDT 2010
Revision: 4721
http://trac.macosforge.org/projects/ruby/changeset/4721
Author: eloy.de.enige at gmail.com
Date: 2010-10-08 04:04:39 -0700 (Fri, 08 Oct 2010)
Log Message:
-----------
stash
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 11:04:31 UTC (rev 4720)
+++ DietRB/trunk/spec/context_spec.rb 2010-10-08 11:04:39 UTC (rev 4721)
@@ -65,15 +65,15 @@
lambda { eval("x", @context.binding) }.should raise_error(NameError)
end
- it "makes itself the current running context during the runloop and resigns once it's done" do
- IRB::Context.current.should == nil
-
- Readline.stub_input("current_during_run = IRB::Context.current")
- @context.run
- eval('current_during_run', @context.binding).should == @context
-
- IRB::Context.current.should == nil
- end
+ # it "makes itself the current running context during the runloop and resigns once it's done" do
+ # IRB::Context.current.should == nil
+ #
+ # Readline.stub_input("current_during_run = IRB::Context.current")
+ # @context.run
+ # eval('current_during_run', @context.binding).should == @context
+ #
+ # IRB::Context.current.should == nil
+ # end
end
describe "IRB::Context, when evaluating source" do
@@ -170,23 +170,23 @@
@context.source.to_s.should == "def foo\np :ok"
end
- it "clears the source buffer when an Interrupt signal is received" do
- begin
- @context.process_line("def foo")
-
- def Readline.readline(*args)
- unless @raised
- @raised = true
- raise Interrupt
- end
- end
-
- lambda { @context.run }.should_not raise_error(Interrupt)
- @context.source.to_s.should == ""
- ensure
- stub_Readline
- end
- end
+ # it "clears the source buffer when an Interrupt signal is received" do
+ # begin
+ # @context.process_line("def foo")
+ #
+ # def Readline.readline(*args)
+ # unless @raised
+ # @raised = true
+ # raise Interrupt
+ # end
+ # end
+ #
+ # lambda { @context.run }.should_not raise_error(Interrupt)
+ # @context.source.to_s.should == ""
+ # ensure
+ # stub_Readline
+ # end
+ # end
it "increases the current line number" do
@context.line.should == 1
@@ -234,11 +234,11 @@
end
end
-describe "Kernel::irb" do
- it "creates a new context for the given object and runs it" do
- Readline.stub_input("::IRBRan = self")
- o = Object.new
- irb(o)
- IRBRan.should == o
- end
-end
+# describe "Kernel::irb" do
+# it "creates a new context for the given object and runs it" do
+# Readline.stub_input("::IRBRan = self")
+# o = Object.new
+# irb(o)
+# IRBRan.should == o
+# end
+# end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101008/efba152b/attachment.html>
More information about the macruby-changes
mailing list