Sha256: 9601b9e4f1ce5237fcc1262eb348e6fc0bc4d9b098361a24a941a26d89b5a1b4
Contents?: true
Size: 533 Bytes
Versions: 12
Compression:
Stored size: 533 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' class PageTaggabilityTest < Test::Unit::TestCase def setup @page = Page.find 1 end def test_page_should_be_taggable assert true, @page.respond_to?("tag_with") assert_difference MetaTag, :count, 2 do @page.tag_with 'lorem ipsum' end end def assert_difference(object, method = nil, difference = 1) initial_value = object.send(method) yield assert_equal initial_value + difference, object.send(method), "#{object}##{method}" end end
Version data entries
12 entries across 12 versions & 1 rubygems