Sha256: 1302b18121d18a70d3e3fca3055b2433e2b58b1b8c724535bc65620f92ded02d

Contents?: true

Size: 513 Bytes

Versions: 1

Compression:

Stored size: 513 Bytes

Contents

require "test_belt"
require "undies/node"

class Undies::Node

  class BasicTest < Test::Unit::TestCase
    include TestBelt

    context 'a node'
    subject { Undies::Node.new("a text node here") }
    should have_instance_method :to_s, :start_tag, :end_tag
    should have_reader :content

    should "know it's content" do
      assert_equal "a text node here", subject.content.to_s
    end

    should "know how to serialize itself" do
      assert_equal "a text node here", subject.to_s
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
undies-1.1.0 test/node_test.rb