Sha256: 4d4818b5355932c2a42cae4ac4795b163c4ef351b90b35442201adfa67347bfb

Contents?: true

Size: 536 Bytes

Versions: 1

Compression:

Stored size: 536 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper'

class PageTaggabilityTest < ActiveSupport::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

1 entries across 1 versions & 1 rubygems

Version Path
radiant-taginator-extension-2.0.beta1 test/unit/page_taggability_test.rb