Sha256: ef84e4c1d7bc26cbb1d26195802f1417692ec4df0bd71220a402ba4639542855
Contents?: true
Size: 788 Bytes
Versions: 1
Compression:
Stored size: 788 Bytes
Contents
# frozen_string_literal: true require_relative '../spec_helper' # Use the RSpec framework # Load the class under test require_relative '../../lib/mini_kraken/core/variable_ref' module MiniKraken module Core describe VariableRef do subject { VariableRef.new('q') } context 'Initialization:' do it 'should be initialized with the name of variable' do expect { VariableRef.new('q') }.not_to raise_error end it 'should know the name of a variable' do expect(subject.var_name).to eq('q') end end # context context 'Provided services:' do it 'knows its text representation' do expect(subject.to_s).to eq('q') end end # context end # describe end # module end # module
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mini_kraken-0.2.03 | spec/core/variable_ref_spec.rb |