Sha256: c0373a45eaa9591579b0bc459adde37c84e9657aee515d7e3b96e905efffb129
Contents?: true
Size: 509 Bytes
Versions: 1
Compression:
Stored size: 509 Bytes
Contents
require_relative "../lib/hmote" class Cutest::Scope include Mote::Helpers def foo "foo" end end scope do prepare do mote_cache.clear end test "helpers" do assert_equal " *\n *\n *\n", mote("test/fixtures/basic.mote", n: 3) end test "using functions in the context" do assert_equal "foo\n", mote("test/fixtures/foo.mote") end test "passing in a context" do assert_raise(NameError) do mote("test/fixtures/foo.mote", {}, TOPLEVEL_BINDING) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hmote-1.0.0 | test/helpers.rb |