Sha256: 48679d690965d14b6d7444558305a81e650b8cbe4fd314ad825782d7b13f9470
Contents?: true
Size: 375 Bytes
Versions: 5
Compression:
Stored size: 375 Bytes
Contents
# frozen_string_literal: true require 'helper' class Nanoc::Int::CodeSnippetTest < Nanoc::TestCase def test_load_with_toplevel_binding # Initialize @foo = 'meow' # Create code and load it code_snippet = Nanoc::Int::CodeSnippet.new("@foo = 'woof'", 'dog.rb') code_snippet.load # Ensure binding is correct assert_equal('meow', @foo) end end
Version data entries
5 entries across 5 versions & 1 rubygems