Sha256: 4d649a0ddfee63563124c75aa0ae0b147e6ebedb0aa45662425acc580c2f1969
Contents?: true
Size: 431 Bytes
Versions: 4
Compression:
Stored size: 431 Bytes
Contents
require File.dirname(__FILE__) + '/helper' class ErnieTest < Test::Unit::TestCase context "mod" do should "add a mod to the mods hash" do mod(:foo) { } assert Ernie.mods[:foo] assert Ernie.mods[:foo].instance_of?(Ernie::Mod) end end context "fun" do should "add a fun to the funs hash of the mod" do mod(:foo) { fun(:bar) { } } assert Ernie.mods[:foo].funs[:bar] end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ernie-1.1.0 | test/ernie_test.rb |
ernie-1.0.0 | test/ernie_test.rb |
ernie-0.4.0 | test/ernie_test.rb |
ernie-0.3.5 | test/ernie_test.rb |