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 colorizedtag" do markup = ' &' @view.ap(markup).should == ' " &<hello>"' end end rescue LoadError puts "Skipping ActionView specs..." end