Sha256: 9a39b61f700ae4a67fd30a0b1fe1ea8415066542b53dfd2821fa9e925d8246b6
Contents?: true
Size: 593 Bytes
Versions: 8
Compression:
Stored size: 593 Bytes
Contents
require 'test_helper' class ContainerTest < Test::Unit::TestCase include Apotomo::TestCaseMethods::TestController context "Rendering a container" do setup do @family = container('family') 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
8 entries across 8 versions & 1 rubygems