Sha256: 05b7bd4e8caa7235372b23321a07a9005fa1b5af7606dd33120767e34f708ea8

Contents?: true

Size: 788 Bytes

Versions: 3

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

        # it 'should be fresh by default' do
          # expect(subject).to be_fresh
        # end
      end # context

      context 'Provided services:' do
      end # context
    end # describe
  end # module
end # module

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mini_kraken-0.1.04 spec/core/variable_ref_spec.rb
mini_kraken-0.1.03 spec/core/variable_ref_spec.rb
mini_kraken-0.1.02 spec/core/variable_ref_spec.rb