Sha256: 2e0c86d89f904b1755456a1ea5cff9413f1d4add97e729a00abe387337936980
Contents?: true
Size: 680 Bytes
Versions: 9
Compression:
Stored size: 680 Bytes
Contents
# encoding: utf-8 class Nanoc::ContextTest < Nanoc::TestCase def test_context_with_instance_variable # Create context context = Nanoc::Context.new({ :foo => 'bar', :baz => 'quux' }) # Ensure correct evaluation assert_equal('bar', eval("@foo", context.get_binding)) end def test_context_with_instance_method # Create context context = Nanoc::Context.new({ :foo => 'bar', :baz => 'quux' }) # Ensure correct evaluation assert_equal('bar', eval("foo", context.get_binding)) end def test_example # Parse YARD.parse(LIB_DIR + '/nanoc/base/context.rb') # Run assert_examples_correct 'Nanoc::Context#initialize' end end
Version data entries
9 entries across 9 versions & 1 rubygems