Sha256: 4296deb04941435a26e56f939b47eb83b3adf8bf7363e078b7327c594bf6443c

Contents?: true

Size: 581 Bytes

Versions: 15

Compression:

Stored size: 581 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_equal 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

15 entries across 15 versions & 1 rubygems

Version Path
commontator-4.5.4 spec/lib/commontator/controller_includes_spec.rb
commontator-4.5.3 spec/lib/commontator/controller_includes_spec.rb
commontator-4.5.2 spec/lib/commontator/controller_includes_spec.rb
commontator-4.5.1 spec/lib/commontator/controller_includes_spec.rb
commontator-4.5.0 spec/lib/commontator/controller_includes_spec.rb
commontator-4.4.1 spec/lib/commontator/controller_includes_spec.rb
commontator-4.3.0 spec/lib/commontator/controller_includes_spec.rb
commontator-4.2.2 spec/lib/commontator/controller_includes_spec.rb
commontator-4.2.1 spec/lib/commontator/controller_includes_spec.rb
commontator-4.2.0 spec/lib/commontator/controller_includes_spec.rb
commontator-4.1.2 spec/lib/commontator/controller_includes_spec.rb
commontator-4.1.1 spec/lib/commontator/controller_includes_spec.rb
commontator-4.0.2 spec/lib/commontator/controller_includes_spec.rb
commontator-4.0.1 spec/lib/commontator/controller_includes_spec.rb
commontator-4.0.0 spec/lib/commontator/controller_includes_spec.rb