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

Version Path
apotomo-1.0.5 test/unit/container_test.rb
apotomo-1.0.4 test/unit/container_test.rb
apotomo-1.0.3 test/unit/container_test.rb
apotomo-1.0.2 test/unit/container_test.rb
apotomo-1.0.1 test/unit/container_test.rb
apotomo-1.0.0 test/unit/container_test.rb
apotomo-1.0.0.beta2 test/unit/container_test.rb
apotomo-1.0.0.beta1 test/unit/container_test.rb