Sha256: d7f3ce5c2e2b7110461ad19c0e3756229e43cc484e52b37f14a70daa0fea371d

Contents?: true

Size: 581 Bytes

Versions: 5

Compression:

Stored size: 581 Bytes

Contents

require 'spec_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

5 entries across 5 versions & 1 rubygems

Version Path
commontator-4.10.3 spec/lib/commontator/controller_includes_spec.rb
commontator-4.10.2 spec/lib/commontator/controller_includes_spec.rb
commontator-4.10.1 spec/lib/commontator/controller_includes_spec.rb
commontator-4.10.0 spec/lib/commontator/controller_includes_spec.rb
commontator-4.9.0 spec/lib/commontator/controller_includes_spec.rb