Sha256: 16a15b884d8a4b658044ba3f9d5571b542384ddeb40d4f2520211cba67201d04

Contents?: true

Size: 521 Bytes

Versions: 4

Compression:

Stored size: 521 Bytes

Contents

require 'test_helper'

class ControllerTest < ActiveSupport::TestCase

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

  test 'callbacks' do
    controller = ActionController::Base
    %w(before after around).each do |callback|
      ['', 'append_', 'prepend_', 'skip_'].each do |prefix|
        assert_nothing_raised do
          controller.send "#{prefix}#{callback}_render", :foo
        end
      end
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tuning-4.0.1.2 test/controller_test.rb
tuning-4.0.1.1 test/controller_test.rb
tuning-4.0.1.0 test/controller_test.rb
tuning-4.0.0.1 test/controller_test.rb