Sha256: dd5a76e0d98c43e3e0bfeb9ed1ff077f3166c98e3d94927cca710296ef88a32e

Contents?: true

Size: 454 Bytes

Versions: 5

Compression:

Stored size: 454 Bytes

Contents

require 'spec_helper'

describe Document do
  describe "ready?" do
    it "accepts a block" do
      Document.ready? { }
    end
  end

  describe "title" do
    it "gets the document title" do
      Document.title.should be_kind_of(String)
    end
  end

  describe "title=" do
    it "sets the document title" do
      old = Document.title
      Document.title = "foo"
      Document.title.should eq("foo")
      Document.title = old
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
opal-jquery-0.1.2 spec/document_spec.rb
opal-jquery-0.1.1 spec/document_spec.rb
opal-jquery-0.1.0 spec/document_spec.rb
opal-jquery-0.0.13 spec/document_spec.rb
opal-jquery-0.0.12 spec/document_spec.rb