$: << 'lib' require 'minitest' require 'minitest/autorun' require 'ranjax' class RanjaxTest < MiniTest::Unit::TestCase def setup @texts = [] @texts << < 0 end def test_load text = @texts[0] ranjax = Ranjax.new() ranjax.import_text(text) file = Tempfile.new('test') ranjax.save(file.path) ranjax = Ranjax.new(path: file.path) text = ranjax.generate_text() assert_instance_of String, text end end