summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2013-07-11 15:00:37 +0200
committerChristoph Helma <helma@in-silico.ch>2013-07-11 15:00:37 +0200
commitfa637e8f16be8deb9e895328346d3de4a6c2edab (patch)
tree343b786d1455387e91c13fece7f0007c759b3f22
parent087e4213706edfb65ad2321a4f2ba8f6c7915f9f (diff)
parent92fb32b9a62ce96953c17a0be6cc0706d81777c7 (diff)
Merge branch 'development' of github.com:opentox/opentox-test into development
-rw-r--r--test/compound.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/compound.rb b/test/compound.rb
index 891dc3c..4336a32 100644
--- a/test/compound.rb
+++ b/test/compound.rb
@@ -48,7 +48,9 @@ class CompoundTest < MiniTest::Test
c = OpenTox::Compound.from_inchi "InChI=1S/C6H6/c1-2-4-6-5-3-1/h1-6H"
puts c.uri
testbild = "/tmp/testbild.png"
- f = File.open(testbild, "w").puts c.png
+ f = File.open(testbild, "w")
+ f.puts c.png
+ f.close
assert_match "image/png", `file -b --mime-type /tmp/testbild.png`
File.unlink(testbild)
#assert_match /^\x89PNG/, c.png #32bit only?