require 'spec_helper' RSpec.describe "AwesomePrint ActionView extensions", skip: ->{ !ExtVerifier.has_rails? }.call do before do @view = ActionView::Base.new end it "uses HTML and adds 'debug_dump' class to plain
tag" do markup = rand expect(@view.ap(markup, :plain => true)).to eq(%Q|#{markup}|) end it "uses HTML and adds 'debug_dump' class to colorizedtag" do markup = ' &' expect(@view.ap(markup)).to eq(' " &<hello>"') end end