Sha256: 4ca0f285260d57617653845d584a3ff23b2b941caeb468b6d6d8ea12310bff32
Contents?: true
Size: 606 Bytes
Versions: 4
Compression:
Stored size: 606 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 assert_raises Bives::ConversionException do compare(@potato1,"",[]) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
bives-0.5 | test/bives_test.rb |
bives-0.4 | test/bives_test.rb |
bives-0.3 | test/bives_test.rb |
bives-0.2 | test/bives_test.rb |