diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-07 11:27:27 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-07 11:27:27 +0000 |
commit | 8ff37e390195f401d82cc8cfb607a3b2ddcba1ed (patch) | |
tree | 772a4b907d4db226942f2ce41c003526d721196c /test/psych/test_yamlstore.rb | |
parent | a27349a4cb97f6db907388d5013100493f5dec73 (diff) | |
download | ruby-8ff37e390195f401d82cc8cfb607a3b2ddcba1ed.tar.gz |
* test/psych/test_yamlstore.rb: make test case inherit from MiniTest,
load psych/helper so that psych is loaded.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/psych/test_yamlstore.rb')
-rw-r--r-- | test/psych/test_yamlstore.rb | 7 |
1 files changed, 3 insertions, 4 deletions
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 |