Sha256: 7c79df4bf98d09f016c2bde26da4d76b533269a4fe6d7cc813348b630c01d677

Contents?: true

Size: 503 Bytes

Versions: 21

Compression:

Stored size: 503 Bytes

Contents

describe "Sections" do
  it "section title setter works" do
    section = Formotion::Section.new
    section.title = "HELLO"
    section.title.should == "HELLO"
  end

  it "from hash should work" do
    hash = {title: "TITLE", rows: [{
      title: "FIRST TITLE"
    }, {
      title: "SECOND TITLE"
    }]}
    f = Formotion::Section.new(hash)
    f.title.should == "TITLE"
    f.rows.count.should == 2
    f.rows[0].title.should == "FIRST TITLE"
    f.rows[1].title.should == "SECOND TITLE"
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
formotion-1.8 spec/section_spec.rb
formotion-1.7 spec/section_spec.rb
formotion-1.6 spec/section_spec.rb
formotion-1.5.1 spec/section_spec.rb
formotion-1.5.0 spec/section_spec.rb
formotion-1.4.0 spec/section_spec.rb
formotion-1.3.1 spec/section_spec.rb
formotion-1.3 spec/section_spec.rb
formotion-1.2 spec/section_spec.rb
formotion-1.1.5 spec/section_spec.rb
formotion-1.1.4 spec/section_spec.rb
formotion-1.1.3 spec/section_spec.rb
formotion-1.1.2 spec/section_spec.rb
formotion-1.1.1 spec/section_spec.rb
formotion-1.1 spec/section_spec.rb
formotion-1.0 spec/section_spec.rb
formotion-0.5.1 spec/section_spec.rb
formotion-0.5 spec/section_spec.rb
formotion-0.0.3 spec/section_spec.rb
formotion-0.0.2 spec/section_spec.rb