Sha256: 6dbfe334d07923d9c5e4705c32b52eeea626604653e450c8adba2c79e5af2d7d

Contents?: true

Size: 1.05 KB

Versions: 17

Compression:

Stored size: 1.05 KB

Contents

require 'test_helper'

class RenderTest < ActiveSupport::IntegrationCase

  test 'render partial' do
    visit render_partial_path

    assert_equal 1, counters.fetch("rails.view.render_partial",
                                      source: 'render:first.html.erb')
    assert_equal 1, counters.fetch("rails.view.render_partial",
                                      source: 'render:second.html.erb')
    assert_equal 1, aggregate.fetch("rails.view.render_partial.time",
                                      source: 'render:first.html.erb')[:count]
    assert_equal 1, aggregate.fetch("rails.view.render_partial.time",
                                      source: 'render:second.html.erb')[:count]
  end

  test 'render template' do
    visit render_template_path

    assert_equal 1, counters.fetch("rails.view.render_template",
                                      source: 'render:template.html.erb')
    assert_equal 1, aggregate.fetch("rails.view.render_template.time",
                                      source: 'render:template.html.erb')[:count]
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
librato-rails-1.4.2 test/integration/render_test.rb
librato-rails-1.4.1 test/integration/render_test.rb
librato-rails-1.4.0 test/integration/render_test.rb
librato-rails-1.4.0.beta test/integration/render_test.rb
librato-rails-1.3.0 test/integration/render_test.rb
librato-rails-1.2.0 test/integration/render_test.rb
librato-rails-1.1.0 test/integration/render_test.rb
librato-rails-1.0.0 test/integration/render_test.rb
librato-rails-0.12.0 test/integration/render_test.rb
librato-rails-0.12.0.beta test/integration/render_test.rb
librato-rails-0.11.1 test/integration/render_test.rb
librato-rails-0.11.0 test/integration/render_test.rb
librato-rails-0.10.3 test/integration/render_test.rb
librato-rails-0.10.2 test/integration/render_test.rb
librato-rails-0.10.1 test/integration/render_test.rb
librato-rails-0.10.0 test/integration/render_test.rb
librato-rails-0.10.0.pre1 test/integration/render_test.rb