require 'approvals/reporters' require 'approvals/utilities/scrubber' describe Approvals::Reporters::HtmlImageReporter do include Approvals subject { Reporters::HtmlImageReporter.instance } it "creates the template" do scrubber = Scrubber.new(subject.html("spec/fixtures/one.png", "spec/fixtures/two.png")) scrubber.to_s.should eq('Approval
receivedapproved
') end # verify "creates the appropriate command", :format => :html do # reporter = Reporters::HtmlImageReporter.instance # scrubber = Scrubber.new(reporter.html("spec/fixtures/one.png", "spec/fixtures/two.png")) # scrubber.to_executable do |html| # reporter.display(html) # end # end end