YouPlot/test/youplot_test.rb

22 lines
528 B
Ruby
Raw Permalink Normal View History

2020-09-18 23:08:09 +08:00
# frozen_string_literal: true
require_relative 'test_helper'
2020-07-28 22:07:15 +08:00
2020-11-23 12:09:16 +08:00
class YouPlotTest < Test::Unit::TestCase
2021-01-20 21:30:04 +08:00
def teardown
YouPlot.run_as_executable = false
end
test :it_has_a_version_number do
2020-11-23 12:09:16 +08:00
assert_kind_of String, ::YouPlot::VERSION
2020-07-28 22:07:15 +08:00
end
2021-01-20 21:30:04 +08:00
test :run_as_executable do
assert_equal false, YouPlot.run_as_executable
assert_equal false, YouPlot.run_as_executable?
YouPlot.run_as_executable = true
assert_equal true, YouPlot.run_as_executable
assert_equal true, YouPlot.run_as_executable?
end
2020-07-28 22:07:15 +08:00
end