Sha256: c946e2256fc88168148c22e229dad59d7e2e4bd0b57b824bfa7737d0eac04506

Contents?: true

Size: 459 Bytes

Versions: 6

Compression:

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

6 entries across 6 versions & 1 rubygems

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