Sha256: 52f135ede1bb5cfef09f45a03a38f130ddfffd3b4ec9cdbb5cd8cde0cdf0fba3

Contents?: true

Size: 597 Bytes

Versions: 1

Compression:

Stored size: 597 Bytes

Contents

require 'test_helper'

class ControllersTest < ActiveSupport::TestCase

  test 'render' do
    controller = ActionController::Base.new
    controller.expects(:run_callbacks).with(:render)
    controller.render
  end

  test 'callbacks' do
    controller = ActionController::Base
    %i(before after around).each do |callback|
      assert controller.respond_to?("#{callback}_render")
      assert controller.respond_to?("append_#{callback}_render")
      assert controller.respond_to?("prepend_#{callback}_render")
      assert controller.respond_to?("skip_#{callback}_render")
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tuning-1.0.0 test/controllers_test.rb