Sha256: 1897f794736b22a2161141bb9ed99c964f636918e87c7a52c423a5116306f774
Contents?: true
Size: 1.07 KB
Versions: 13
Compression:
Stored size: 1.07 KB
Contents
# frozen_string_literal: true require_relative '../spec_helper' # Use the RSpec framework require_relative '../../lib/mini_kraken/core/k_symbol' require_relative '../../lib/mini_kraken/core/variable' # Load the class under test require_relative '../../lib/mini_kraken/core/association' module MiniKraken module Core describe Association do let(:pea) { KSymbol.new(:pea) } subject { Association.new('q', pea) } context 'Initialization:' do it 'should be initialized with a name and a value' do expect { Association.new('q', pea) }.not_to raise_error end it 'should be initialized with a variable and a value' do expect { Association.new(Variable.new('p'), pea) }.not_to raise_error end it 'should know the variable name' do expect(subject.i_name).to eq('q') end it 'should know the associated value' do expect(subject.value).to eq(pea) end end # context context 'Provided services:' do end # context end # describe end # module end # module
Version data entries
13 entries across 13 versions & 1 rubygems