Sha256: 80ace2920fe7b4686a095738b82f3373687a65180d49809eb6990045d8c27f45
Contents?: true
Size: 328 Bytes
Versions: 3
Compression:
Stored size: 328 Bytes
Contents
describe "Document.ready?" do it "should return true once the document is ready" do Document.ready?.should == true end it "should execute blocks immediately when the document is ready" do result = [] Document.ready? do result << :a end result << :b result.should == [:a, :b] end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
opal-0.2.2 | opals/opal/browser/spec/document/ready_spec.rb |
opal-0.2.0 | opals/opal/browser/spec/document/ready_spec.rb |
opal-0.1.0 | opals/browser/spec/document/ready_spec.rb |