require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') begin require 'action_view' require 'awesome_print/ext/action_view' describe "AwesomePrint ActionView extensions" do before do @view = ActionView::Base.new end it "uses HTML and adds 'debug_dump' class to plain
 tag" do
      markup = rand
      @view.ap(markup, :plain => true).should == %Q|
#{markup}
| end it "uses HTML and adds 'debug_dump' class to colorized
 tag" do
      markup = ' &'
      @view.ap(markup).should == '
" &<hello>"
' end end rescue LoadError => error puts "Skipping ActionView specs: #{error}" end