diff --git a/ChangeLog b/ChangeLog index e0d9d70033..a61c9d7df0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Nov 7 20:26:37 2011 Aaron Patterson + + * test/psych/test_yamlstore.rb: make test case inherit from MiniTest, + load psych/helper so that psych is loaded. + Mon Nov 7 20:18:29 2011 Aaron Patterson * test/psych/test_yamldbm.rb: Test case should inherit from MiniTest, diff --git a/test/psych/test_yamlstore.rb b/test/psych/test_yamlstore.rb index c31b33f5ed..5d6fcb79b2 100644 --- a/test/psych/test_yamlstore.rb +++ b/test/psych/test_yamlstore.rb @@ -1,12 +1,11 @@ -require 'test/unit' -require 'psych' +require 'psych/helper' require 'yaml/store' require 'tmpdir' module Psych Psych::Store = YAML::Store unless defined?(Psych::Store) - class YAMLStoreTest < Test::Unit::TestCase + class YAMLStoreTest < TestCase def setup @engine, YAML::ENGINE.yamler = YAML::ENGINE.yamler, 'psych' @dir = Dir.mktmpdir("rubytest-file") @@ -78,7 +77,7 @@ module Psych end def test_writing_inside_readonly_transaction_raises_error - assert_raise(PStore::Error) do + assert_raises(PStore::Error) do @yamlstore.transaction(true) do @yamlstore[:foo] = "bar" end