Sha256: c96fe2011a73346814e8bb0d681c8d4cd152d0b242c451f61fdfebab8b451dcb

Contents?: true

Size: 458 Bytes

Versions: 5

Compression:

Stored size: 458 Bytes

Contents

require 'spec_helper'

module Commontator
  describe SharedHelper do
    it 'must show commontator thread' do
      controller = DummyModelsController.new
      # Workaround for https://github.com/rails/rails/issues/11662
      controller.define_singleton_method(:params) do
        {}
      end
      thread_link = controller.view_context.commontator_thread(DummyModel.create)
      thread_link.wont_be_nil
      thread_link.wont_be_empty
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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