filehandlers_test.rb 436 B

1234567891011121314151617
  1. # Test cases for file utilities
  2. #
  3. # Copyright (c) Peter Lane, 2012.
  4. require 'test_helper'
  5. describe AsciidocBib do
  6. it "should add ref to end of filename" do
  7. _(FileHandlers.add_ref('/tmp/example.txt')).must_equal '/tmp/example-ref.txt'
  8. end
  9. it "should find biblio file" do
  10. _(FileHandlers.find_bibliography('test/data')).must_equal 'test/data/test.bib'
  11. _(FileHandlers.find_bibliography('test')).must_equal ''
  12. end
  13. end