Sha256: 9298382aa693c500546078f66d3ff7f2b4383ae7ff282c7cf040a36c4e44cc28

Contents?: true

Size: 454 Bytes

Versions: 11

Compression:

Stored size: 454 Bytes

Contents

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

describe "Rendering Extensions" do
  describe 'for haml' do
    it 'should render haml_tag correctly' do
      skip unless Padrino::Helpers::OutputHelpers.handlers[:haml].to_s == "Padrino::Helpers::OutputHelpers::HamlHandler"

      mock_app do
        get('/') { render :haml, '-haml_tag :div'}
      end

      get '/'
      assert_match '<div></div>', last_response.body
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
padrino-helpers-0.16.0.pre3 test/test_rendering_extensions.rb
padrino-helpers-0.16.0.pre2 test/test_rendering_extensions.rb
padrino-helpers-0.15.3 test/test_rendering_extensions.rb
padrino-helpers-0.15.2 test/test_rendering_extensions.rb
padrino-helpers-0.15.1 test/test_rendering_extensions.rb
padrino-helpers-0.15.0 test/test_rendering_extensions.rb
padrino-helpers-0.14.4 test/test_rendering_extensions.rb
padrino-helpers-0.14.3 test/test_rendering_extensions.rb
padrino-helpers-0.14.2 test/test_rendering_extensions.rb
padrino-helpers-0.14.1.1 test/test_rendering_extensions.rb
padrino-helpers-0.14.1 test/test_rendering_extensions.rb