diff options
author | gebele <gebele@in-silico.ch> | 2016-11-10 11:07:03 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2016-11-10 11:07:03 +0000 |
commit | 347ef2891876af871e101f9a9efc643e5f28da4c (patch) | |
tree | 508a3f0fcfeb4fa934f703adbdf9b0aee2954ece /test/descriptor.rb | |
parent | 295dcfc74e1375e495ec3d9c1e74a402eb4decd4 (diff) | |
parent | 7bd244b35d2e2059baf1fa535dca854999b5da75 (diff) |
Merge branch 'development' of https://github.com/opentox/lazar into development
Diffstat (limited to 'test/descriptor.rb')
-rw-r--r-- | test/descriptor.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/descriptor.rb b/test/descriptor.rb index e5d8ff9..42d4661 100644 --- a/test/descriptor.rb +++ b/test/descriptor.rb @@ -12,7 +12,9 @@ class DescriptorTest < MiniTest::Test def test_smarts c = OpenTox::Compound.from_smiles "N=C=C1CCC(=F=FO)C1" - File.open("tmp.png","w+"){|f| f.puts c.png} + File.open("/tmp/tmp.png","w+"){|f| f.puts c.png} + assert_match /^PNG/,`file -b /tmp/tmp.png` + File.delete "/tmp/tmp.png" s = Smarts.find_or_create_by(:smarts => "F=F") result = c.smarts_match [s] assert_equal [1], result |