Sha256: e5bd01763cdeee0ed033bdcc9db1c9190eed5cf9a12acf28bd776d8ffb1fc632
Contents?: true
Size: 687 Bytes
Versions: 2
Compression:
Stored size: 687 Bytes
Contents
require 'minitest/unit' require "minitest/autorun" require_relative '../lib/bives' class BivesTest < MiniTest::Unit::TestCase include Bives def setup @potato1 = File.expand_path('../models/potato1.xml', __FILE__) @potato2 = File.expand_path('../models/potato2.xml', __FILE__) assert File.exist?(@potato1) assert File.exist?(@potato2) end def test_compare result = compare(@potato1,@potato2) refute_nil result refute_empty result.strip end def test_exception_thrown exception = assert_raises Bives::ConversionException do compare(@potato1,"",[]) end assert_includes exception.message,"you need to provide 2 files!" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bives-0.7 | test/bives_test.rb |
bives-0.6 | test/bives_test.rb |