Sha256: 8b5bf92372d8e89a236fc138bfb9ea946102d94f038b0b49254dc0401f7a9030

Contents?: true

Size: 582 Bytes

Versions: 6

Compression:

Stored size: 582 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

6 entries across 6 versions & 1 rubygems

Version Path
commontator-4.8.0 spec/lib/commontator/controller_includes_spec.rb
commontator-4.7.2 spec/lib/commontator/controller_includes_spec.rb
commontator-4.7.1 spec/lib/commontator/controller_includes_spec.rb
commontator-4.7.0 spec/lib/commontator/controller_includes_spec.rb
commontator-4.6.1 spec/lib/commontator/controller_includes_spec.rb
commontator-4.6.0 spec/lib/commontator/controller_includes_spec.rb