rosa-build/vendor/plugins/diff-display/test/test_diff_renderer.rb

15 lines
401 B
Ruby
Raw Normal View History

2012-01-30 20:39:34 +00:00
# -*- encoding : utf-8 -*-
require File.dirname(__FILE__) + "/test_helper"
class TestDiffRenderer < Test::Unit::TestCase
include DiffFixtureHelper
def test_it_renders_a_diff_back_to_its_original_state
data = Diff::Display::Unified::Generator.run(load_diff("simple"))
base_renderer = Diff::Renderer::Diff.new
assert_equal load_diff("simple"), base_renderer.render(data)
end
end