Sha256: 1cfc0a12ca3d8d175794b3444ccac3ffe2f4b3d4596e493fde20f2958ab22ffa

Contents?: true

Size: 645 Bytes

Versions: 1

Compression:

Stored size: 645 Bytes

Contents

#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/helper'

class StrainerTest < Test::Unit::TestCase
  include Liquid

  def test_strainer
    strainer = Strainer.create(nil)
    assert_equal false, strainer.respond_to?('__test__')
    assert_equal false, strainer.respond_to?('test')
    assert_equal false, strainer.respond_to?('instance_eval')
    assert_equal false, strainer.respond_to?('__send__')
    assert_equal true, strainer.respond_to?('size') # from the standard lib
  end
  
  def test_should_respond_to_two_parameters
    strainer = Strainer.create(nil)
    assert_equal true, strainer.respond_to?('size', false)
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
drnic-liquid-2.1.0 test/strainer_test.rb