Skip to content

Commit

Permalink
Fxied poem test
Browse files Browse the repository at this point in the history
  • Loading branch information
p8 committed Aug 19, 2010
1 parent 51a6ac1 commit c8aa317
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions tryruby/test/unit/try_ruby_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ def test_lesson3
tryruby_session do
# the below line should be done automatically by the interpretor
# when help 3 is loaded
# input "poem = #{poem.inspect}", result: Proc.new{}

input "poem = #{poem.inspect}", result: Proc.new{}
input 'print poem', output: poem
input "poem['toast'] = 'honeydew'", result: "honeydew"
input 'print poem', output: (poem['toast'] = 'honeydew'; poem)
Expand Down Expand Up @@ -423,13 +422,13 @@ def do_test(line)
initial_constants = Object.constants
session = @session

thread = Thread.new do
o.instance_eval do
run_script(session, line)
end
end
#thread = Thread.new do
# o.instance_eval do
result = run_script(session, line)
#end
#end

result = thread.value
#result = thread.value
# restores require to its old functionality
#def Object.require(str)
# old_require(str)
Expand Down

0 comments on commit c8aa317

Please sign in to comment.