Wrapping tests in meaningful context

This commit is contained in:
Mitchell Hashimoto 2010-04-11 23:42:11 -07:00
parent 945710e068
commit aa52d977a8
1 changed files with 13 additions and 11 deletions

View File

@ -121,6 +121,7 @@ class ConfigTest < Test::Unit::TestCase
end
end
context "converting to JSON" do
should "convert instance variable hash to json" do
@json = mock("json")
@iv_hash = mock("iv_hash")
@ -135,6 +136,7 @@ class ConfigTest < Test::Unit::TestCase
assert !hash.has_key?(:env)
end
end
end
context "top config class" do
setup do