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