Sha256: 398b223f16d9e2e7ee4d73ee082afeb6e33603c7b9e8a4b6c240bdfb99f30ff1

Contents?: true

Size: 349 Bytes

Versions: 8

Compression:

Stored size: 349 Bytes

Contents

describe "d3 - creator" do
  after(:each) do
    D3.select("#test-area").html("")
  end
  let(:root) { D3.select("#test-area") }
  let(:html) { root.html }

  it "d3.creator" do
    expect(D3.creator("div")).to be_instance_of(D3::Creator)
    D3.select("div").append(D3.creator("span"))
    expect(html).to eq(
      "<span></span>"
    )
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
hyper-d3-1.0.0.lap28 spec/creator_spec.rb
hyper-d3-1.0.0.lap27 spec/creator_spec.rb
hyper-d3-1.0.0.lap26 spec/creator_spec.rb
hyper-d3-1.0.0.lap25 spec/creator_spec.rb
hyper-d3-1.0.0.lap24 spec/creator_spec.rb
hyper-d3-1.0.0.lap23 spec/creator_spec.rb
opal-d3-0.0.20170822 spec/creator_spec.rb
opal-d3-0.0.20170205 spec/creator_spec.rb