Sha256: f6e84ee3a0a85379bac89923d99140789f11f00f5430729e719e1d5318703479

Contents?: true

Size: 688 Bytes

Versions: 12

Compression:

Stored size: 688 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
      end # context
    end # describe
  end # module
end # module

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
mini_kraken-0.2.02 spec/core/variable_ref_spec.rb
mini_kraken-0.2.01 spec/core/variable_ref_spec.rb
mini_kraken-0.2.00 spec/core/variable_ref_spec.rb
mini_kraken-0.1.13 spec/core/variable_ref_spec.rb
mini_kraken-0.1.12 spec/core/variable_ref_spec.rb
mini_kraken-0.1.11 spec/core/variable_ref_spec.rb
mini_kraken-0.1.10 spec/core/variable_ref_spec.rb
mini_kraken-0.1.09 spec/core/variable_ref_spec.rb
mini_kraken-0.1.08 spec/core/variable_ref_spec.rb
mini_kraken-0.1.07 spec/core/variable_ref_spec.rb
mini_kraken-0.1.06 spec/core/variable_ref_spec.rb
mini_kraken-0.1.05 spec/core/variable_ref_spec.rb