Sha256: e7481c0ac48e2f642232af89870aee99351624549e20d86e9ebb0178dcfbff5e
Contents?: true
Size: 420 Bytes
Versions: 3
Compression:
Stored size: 420 Bytes
Contents
# frozen_string_literal: true require_relative "helper" class HelpersTest < Minitest::Test include HMote::Helpers setup do hmote_cache.clear end def foo "foo" end test "using functions in the context" do assert_equal("foo\n", hmote("test/foo.mote")) end test "passing in a context" do assert_raises(NameError) do hmote("test/foo.mote", {}, TOPLEVEL_BINDING) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hmote-1.6.0 | test/helpers_test.rb |
hmote-1.5.2 | test/helpers_test.rb |
hmote-1.5.1 | test/helpers_test.rb |