Sha256: e7b38a37282df13da619b7a4ed05897e554116f6b70e07e68a4b87d767745ac4

Contents?: true

Size: 713 Bytes

Versions: 4

Compression:

Stored size: 713 Bytes

Contents

require 'rails_helper'

module Commontator
  RSpec.describe Controllers, type: :lib do
    it 'must add commontator_thread_show to ActionController instances' do
      expect(ActionController::Base.new.respond_to?(:commontator_thread_show,
                                                    true)).to eq true
      expect(DummyModelsController.new.respond_to?(:commontator_thread_show,
                                                   true)).to eq true
    end

    it 'must add shared helper to ActionController and subclasses' do
      expect(ActionController::Base.helpers).to respond_to(:commontator_thread)
      expect(DummyModelsController.helpers).to respond_to(:commontator_thread)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
commontator-5.1.0 spec/lib/commontator/controllers_spec.rb
commontator-5.0.0 spec/lib/commontator/controllers_spec.rb
commontator-4.11.1 spec/lib/commontator/controllers_spec.rb
commontator-4.11.0 spec/lib/commontator/controllers_spec.rb