Sha256: 1674f20b4f7a774144aa4f181688cdc2b40461d4944379c59c7fc463bd7735f2
Contents?: true
Size: 897 Bytes
Versions: 4
Compression:
Stored size: 897 Bytes
Contents
# frozen_string_literal: true require_relative '../../spec_helper' require_relative '../../../lib/rley/lexical/token' # Load the class under test require_relative '../../../lib/rley/rgn/symbol_node' module Rley # Open this namespace to avoid module qualifier prefixes module RGN # Open this namespace to avoid module qualifier prefixes describe SymbolNode do let(:a_name) { 'arguments' } let(:a_pos) { Lexical::Position.new(3, 4) } context 'Initialization:' do # Default instantiation rule subject { SymbolNode.new(a_pos, a_name) } it 'should be created with a name and position' do expect { SymbolNode.new(a_pos, a_name) }.not_to raise_error end it 'should know its name' do expect(subject.name).to eq(a_name) end end # context end # describe end # module end # module # End of file
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rley-0.8.11 | spec/rley/rgn/symbol_node_spec.rb |
rley-0.8.10 | spec/rley/rgn/symbol_node_spec.rb |
rley-0.8.09 | spec/rley/rgn/symbol_node_spec.rb |
rley-0.8.08 | spec/rley/rgn/symbol_node_spec.rb |