Sha256: fbf182a7f4f948c436260592abfbd227f423406f5558a909363eac2c8fe16470
Contents?: true
Size: 500 Bytes
Versions: 19
Compression:
Stored size: 500 Bytes
Contents
require File.expand_path('../../test_helper', __FILE__) require File.expand_path('../../fixture_setup', __FILE__) AutoHtml.add_filter(:foo) do |text| nil end AutoHtml.add_filter(:bar) do |text| "bar" end class User < ActiveRecord::Base auto_html_for :bio do foo foo bar end end class FilterTest < Test::Unit::TestCase include FixtureSetup def test_transform_after_save @article = User.new(:bio => 'in progress...') assert_equal 'bar', @article.bio_html end end
Version data entries
19 entries across 19 versions & 2 rubygems