Sha256: d0cef1784c8d3f948d6ba7e1baf136e20f8e7c478bf2a098f17e43f5fba9a29c

Contents?: true

Size: 492 Bytes

Versions: 24

Compression:

Stored size: 492 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/helper')

describe "Padrino::Helpers" do
  it 'should allow including without registering' do
    class Foo
      include Padrino::Helpers
    end
    assert_equal '<div>bar</div>', Foo.new.content_tag(:div, 'bar')
  end

  it 'should not overwrite default_builder setting' do
    mock_app do
      set :default_builder, 'FancyBuilder'
      register Padrino::Helpers
    end
    assert_equal 'FancyBuilder', @app.default_builder
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
padrino-helpers-0.16.0.pre3 test/test_helpers.rb
padrino-helpers-0.16.0.pre2 test/test_helpers.rb
padrino-helpers-0.15.3 test/test_helpers.rb
padrino-helpers-0.15.2 test/test_helpers.rb
padrino-helpers-0.15.1 test/test_helpers.rb
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/padrino-helpers-0.13.3.4/test/test_helpers.rb
padrino-helpers-0.15.0 test/test_helpers.rb
padrino-helpers-0.14.4 test/test_helpers.rb
padrino-helpers-0.14.3 test/test_helpers.rb
padrino-helpers-0.12.9 test/test_helpers.rb
padrino-helpers-0.14.2 test/test_helpers.rb
padrino-helpers-0.13.3.4 test/test_helpers.rb
padrino-helpers-0.14.1.1 test/test_helpers.rb
padrino-helpers-0.14.1 test/test_helpers.rb
padrino-helpers-0.14.0.2 test/test_helpers.rb
padrino-helpers-0.14.0.1 test/test_helpers.rb
padrino-helpers-0.14.0 test/test_helpers.rb
padrino-helpers-0.14.0.rc2 test/test_helpers.rb
padrino-helpers-0.14.0.rc1 test/test_helpers.rb
padrino-helpers-0.13.3.3 test/test_helpers.rb