Sha256: 15606421eeefe6274f951a8d653a50b72a8af3d5001cba260e409f58bfb16e79

Contents?: true

Size: 458 Bytes

Versions: 15

Compression:

Stored size: 458 Bytes

Contents

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

15 entries across 15 versions & 1 rubygems

Version Path
commontator-4.5.4 spec/lib/commontator/shared_helper_spec.rb
commontator-4.5.3 spec/lib/commontator/shared_helper_spec.rb
commontator-4.5.2 spec/lib/commontator/shared_helper_spec.rb
commontator-4.5.1 spec/lib/commontator/shared_helper_spec.rb
commontator-4.5.0 spec/lib/commontator/shared_helper_spec.rb
commontator-4.4.1 spec/lib/commontator/shared_helper_spec.rb
commontator-4.3.0 spec/lib/commontator/shared_helper_spec.rb
commontator-4.2.2 spec/lib/commontator/shared_helper_spec.rb
commontator-4.2.1 spec/lib/commontator/shared_helper_spec.rb
commontator-4.2.0 spec/lib/commontator/shared_helper_spec.rb
commontator-4.1.2 spec/lib/commontator/shared_helper_spec.rb
commontator-4.1.1 spec/lib/commontator/shared_helper_spec.rb
commontator-4.0.2 spec/lib/commontator/shared_helper_spec.rb
commontator-4.0.1 spec/lib/commontator/shared_helper_spec.rb
commontator-4.0.0 spec/lib/commontator/shared_helper_spec.rb