Sha256: 9b1d0de992e5063c3684727a129f1ac755fcf163d1ec6ba8512eabe133d4788e

Contents?: true

Size: 547 Bytes

Versions: 5

Compression:

Stored size: 547 Bytes

Contents

require 'minitest_helper'

module Commontator
  describe ControllerIncludes do
    it 'must add commontator_thread_show to ActionController instances' do
      ActionController::Base.new.must_respond_to :commontator_thread_show
      DummyModelsController.new.must_respond_to :commontator_thread_show
    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

5 entries across 5 versions & 1 rubygems

Version Path
commontator-2.0.2 spec/lib/commontator/controller_includes_spec.rb
commontator-2.0.1 spec/lib/commontator/controller_includes_spec.rb
commontator-2.0.0 spec/lib/commontator/controller_includes_spec.rb
commontator-1.1.3 spec/lib/commontator/controller_includes_spec.rb
commontator-1.1.2 spec/lib/commontator/controller_includes_spec.rb