require 'spec_helper' require 'approvals/reporters' require 'approvals/scrubber' describe Approvals::Reporters::HtmlImageReporter do subject { Approvals::Reporters::HtmlImageReporter.instance } it "creates the template" do scrubber = Approvals::Scrubber.new(subject.html("spec/fixtures/one.png", "spec/fixtures/two.png")) expect(scrubber.to_s).to 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