Sha256: 2db453a57637e33979d793763746422b33cac095237bbb2e7efd985ba121db82

Contents?: true

Size: 543 Bytes

Versions: 10

Compression:

Stored size: 543 Bytes

Contents

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

10 entries across 10 versions & 1 rubygems

Version Path
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~
commontator-1.1.1 spec/lib/commontator/controller_includes_spec.rb
commontator-1.1.0 spec/lib/commontator/controller_includes_spec.rb
commontator-1.0.6 spec/lib/commontator/controller_includes_spec.rb
commontator-1.0.5 spec/lib/commontator/controller_includes_spec.rb
commontator-1.0.4 spec/lib/commontator/controller_includes_spec.rb
commontator-1.0.3 spec/lib/commontator/controller_includes_spec.rb