Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (13 sloc) 310 Bytes
require 'rubygems'
require 'rspec/autorun'
require 'prettyjsp'
module PrettyJSPHelper
def verify_pretty(source)
golden = "#{source}.golden"
pretty = PrettyJSP::Pretty.new.pretty(IO.read(source))
pretty.should == IO.read(golden)
end
end
RSpec.configure do |c|
c.include(PrettyJSPHelper)
end