Sha256: 13ab911956bffc10b88844786ef2cc43f9625a0dffa5554395df46394b81187c
Contents?: true
Size: 578 Bytes
Versions: 2
Compression:
Stored size: 578 Bytes
Contents
require 'test_helper' class ContainerTest < Test::Unit::TestCase context "Rendering a container" do setup do @family = container('family') @family.controller = @controller end should "return an empty view if childless" do assert_equal "<div id=\"family\"></div>", @family.invoke end should "provide a family picture" do @family << mouse_mock('mum') @family << mouse_mock('kid') assert_equal "<div id=\"family\"><div id=\"mum\">burp!</div>\n<div id=\"kid\">burp!</div></div>", @family.invoke end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
apotomo-0.1.4 | test/unit/container_test.rb |
apotomo-0.1.3 | test/unit/container_test.rb |