Sha256: bc6049fbcbecdd64ae76dc823ca280acc2f235fad7db5afd685cebe69ba58569

Contents?: true

Size: 412 Bytes

Versions: 2

Compression:

Stored size: 412 Bytes

Contents

require 'spec_helper'

describe Arbre::Context do

  setup_arbre_context!

  before do
    h1 # Add some HTML to the context
  end

  it "should return a bytesize" do
    current_dom_context.bytesize.should == 10
  end

  it "should return a length" do
    current_dom_context.length.should == 10
  end

  it "should not increment the indent_level" do
    current_dom_context.indent_level.should == -1
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activeadmin-0.3.1 spec/unit/arbre/context_spec.rb
activeadmin-0.3.0 spec/unit/arbre/context_spec.rb