Sha256: 1196b5a2254ef4610682ce678e239f6d2f1c3bb1ef5cb88b0449f081faf0346e

Contents?: true

Size: 542 Bytes

Versions: 2

Compression:

Stored size: 542 Bytes

Contents

require 'test_helper'

module Sketchily
  describe SketchilyTag do
    it 'must add methods to ActionView::Base' do
      ActionView::Base.must_respond_to :sketchily_tag
    end
    
    it 'must show sketchily tag' do
      controller = DummyModelsController.new
      # Workaround for https://github.com/rails/rails/issues/11662
      controller.define_singleton_method(:params) do
        {}
      end
      sketchily_tag = ActionView::Base.new.sketchily_tag
      thread_link.wont_be_nil
      thread_link.wont_be_empty
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sketchily-4.0.1 spec/lib/sketchily/sketchily_tag.rb~
sketchily-4.0.0 spec/lib/sketchily/sketchily_tag.rb~