Sha256: 6d340aa379e6aa9feaac16f5b74b4fc60172c29d8bfc183e496718adc3852c1c
Contents?: true
Size: 781 Bytes
Versions: 1
Compression:
Stored size: 781 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/log_var_ref' module MiniKraken module Core describe LogVarRef do subject { LogVarRef.new('q') } context 'Initialization:' do it 'should be initialized with the name of variable' do expect { LogVarRef.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.04 | spec/core/log_var_ref_spec.rb |