Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (14 sloc) 0.374 kb
require "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
Jump to Line
Something went wrong with that request. Please try again.