mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-06 07:10:10 +08:00
22 lines
528 B
Ruby
22 lines
528 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_relative 'test_helper'
|
|
|
|
class YouPlotTest < Test::Unit::TestCase
|
|
def teardown
|
|
YouPlot.run_as_executable = false
|
|
end
|
|
|
|
test :it_has_a_version_number do
|
|
assert_kind_of String, ::YouPlot::VERSION
|
|
end
|
|
|
|
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
|
|
end
|