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:
parent
80ebeae1c7
commit
9276bb69a6
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue