Sha256: ede43bf2d540d79a613ab650bd5fc909bc62bd75fad33b9db5849855e0187ec9
Contents?: true
Size: 578 Bytes
Versions: 3
Compression:
Stored size: 578 Bytes
Contents
require 'test_helper' module Commontator describe ControllerIncludes do it 'must add commontator_thread_show to ActionController instances' do ActionController::Base.new.respond_to?(:commontator_thread_show, true).must_be true DummyModelsController.new.respond_to?(:commontator_thread_show, true).must_equal true end it 'must add shared helper to ActionController and subclasses' do ActionController::Base.helpers.must_respond_to :commontator_thread DummyModelsController.helpers.must_respond_to :commontator_thread end end end
Version data entries
3 entries across 3 versions & 1 rubygems