Sha256: ad569b59945eee031b95a5c33a8fe2f2dd8913cf62050026249f133ece9e07fd
Contents?: true
Size: 399 Bytes
Versions: 4
Compression:
Stored size: 399 Bytes
Contents
require_relative "helper" class Cutest::Scope include HMote::Helpers def foo "foo" end end scope("helpers") do prepare do hmote_cache.clear end test "using functions in the context" do assert_equal("foo\n", hmote("test/foo.mote")) end test "passing in a context" do assert_raise(NameError) do hmote("test/foo.mote", {}, TOPLEVEL_BINDING) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hmote-1.4.0 | test/helpers.rb |
hmote-1.3.0 | test/helpers.rb |
hmote-1.2.0 | test/helpers.rb |
hmote-1.1.0 | test/helpers.rb |