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