mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-05 22:31:11 +08:00
Add test
run_as_executable
This commit is contained in:
parent
2e4666f9b4
commit
edf8849d6a
@ -3,7 +3,19 @@
|
||||
require_relative 'test_helper'
|
||||
|
||||
class YouPlotTest < Test::Unit::TestCase
|
||||
def test_that_it_has_a_version_number
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user