Sha256: 24a71b33aaa63f7efe3b0a357d083cf9ab203e99f3e5154dcdc7e71733e40bc8

Contents?: true

Size: 415 Bytes

Versions: 3

Compression:

Stored size: 415 Bytes

Contents

require 'test_helper'

module Commontator
  describe SharedHelper do
    it 'must show commontator thread' do
      controller = DummyModelsController.new
      # Workaround for 
      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

3 entries across 3 versions & 1 rubygems

Version Path
commontator-2.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~