Sha256: d8a6ae40feb8657e9a7e65b93ed008c30d13c996989330beeaa26716c231bdd0
Contents?: true
Size: 669 Bytes
Versions: 4
Compression:
Stored size: 669 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("","",[]) end assert_includes exception.message,"no file provided" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
bives-1.0 | test/bives_test.rb |
bives-0.10 | test/bives_test.rb |
bives-0.9 | test/bives_test.rb |
bives-0.8 | test/bives_test.rb |