Sha256: 183c500bb2273ab3708b2ec4e8d71ce162ca42da8b9d268231eeb2392f4f26b6
Contents?: true
Size: 434 Bytes
Versions: 17
Compression:
Stored size: 434 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), "/../../helper")) module Johnson module Conversions class StructTest < Johnson::TestCase def test_use_struct f = Struct.new(:phil_collins).new f.phil_collins = 'awesome' @runtime[:foo] = f assert_equal(f, @runtime.evaluate('foo')) assert_equal('awesome', @runtime.evaluate('foo.phil_collins')) end end end end
Version data entries
17 entries across 17 versions & 2 rubygems