Sha256: 568a6a01ee49e2aed2eede487b436525cb002d60aa6b9e31a8d27101f1e89896
Contents?: true
Size: 494 Bytes
Versions: 1
Compression:
Stored size: 494 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 < Minitest::Test include FixtureSetup def test_transform_after_save @article = User.new(:bio => 'in progress...') assert_equal 'bar', @article.bio_html end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
auto_html-whistlerbrk-2.0.0.pre | test/functional/filter_test.rb |