1
0
Fork 0
mirror of https://github.com/rubyjs/therubyrhino synced 2023-03-27 23:21:34 -04:00

clarify wording of context example

This commit is contained in:
Charles Lowell 2009-10-09 18:36:21 -05:00
parent 80ebeae1c7
commit 9276bb69a6

View file

@ -10,7 +10,7 @@ describe Rhino::Context do
end end
end end
it "can embed ruby object into javascript" do it "can embed primitive ruby object into javascript" do
Context.open do |cxt| Context.open do |cxt|
cxt.init_standard_objects.tap do |scope| cxt.init_standard_objects.tap do |scope|
scope["foo"] = "Hello World" scope["foo"] = "Hello World"
@ -73,8 +73,7 @@ describe Rhino::Context do
scope["java"].should_not be_nil scope["java"].should_not be_nil
cxt.evaljs("new java.lang.String('foo')", scope).should == "foo" cxt.evaljs("new java.lang.String('foo')", scope).should == "foo"
end end
end end
end end