test/test_rserve_extension.rb in statsample-0.15.0 vs test/test_rserve_extension.rb in statsample-0.15.1

- old
+ new

@@ -7,9 +7,12 @@ class StatsampleRserveExtensionTestCase < MiniTest::Unit::TestCase context "Statsample Rserve extensions" do setup do @r=Rserve::Connection.new end + teardown do + @r.close + end should "return a valid rexp for numeric vector" do a=100.times.map {|i| rand()>0.9 ? nil : i+rand() }.to_scale rexp=a.to_REXP assert(rexp.is_a? Rserve::REXP::Double) assert_equal(rexp.to_ruby,a.data_with_nils)