Sha256: a1ccf4a7dbb135b90b23d2b735353bb08531933efb2f7d0a4e12b8798828d527
Contents?: true
Size: 491 Bytes
Versions: 5
Compression:
Stored size: 491 Bytes
Contents
# coding: utf-8 require 'astrolabe/sexp' module Astrolabe describe Sexp do include Sexp describe '.s' do subject(:node) { s(:lvar, :foo) } it 'returns an instance of Astrolabe::Node' do expect(node).to be_a(::Astrolabe::Node) end it 'sets the passed type to the node' do expect(node.type).to eq(:lvar) end it 'sets the passed children to the node' do expect(node.children).to eq([:foo]) end end end end
Version data entries
5 entries across 5 versions & 2 rubygems