Sha256: ab5d6edb39bc1a11b725b73a6435d9c9e1a65ebada6609a1ee4b3579d37aafd9

Contents?: true

Size: 1.02 KB

Versions: 4

Compression:

Stored size: 1.02 KB

Contents

# frozen_string_literal: true

require_relative '../spec_helper' # Use the RSpec framework
require_relative '../../lib/mini_kraken/core/goal'
require_relative '../../lib/mini_kraken/core/equals'
require_relative '../../lib/mini_kraken/core/k_symbol'

# Load the class under test
require_relative '../../lib/mini_kraken/glue/fresh_env'


module MiniKraken
  module Glue
    describe FreshEnv do
      let(:pea) { Core::KSymbol.new(:pea) }
      let(:pod) { Core::KSymbol.new(:pod) }
      let(:sample_goal) do
        Core::Goal.new(Core::Equals.instance, [pea, pod])
      end
      subject { FreshEnv.new(['q'], sample_goal) }

      context 'Initialization:' do
        it 'should be initialized with an array of names' do
          expect { FreshEnv.new(['q'], sample_goal) }.not_to raise_error
        end

        it 'should know its variables' do
          expect(subject.vars['q']).not_to be_nil
        end
      end # context

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mini_kraken-0.1.08 spec/glue/fresh_env_spec.rb
mini_kraken-0.1.07 spec/glue/fresh_env_spec.rb
mini_kraken-0.1.06 spec/glue/fresh_env_spec.rb
mini_kraken-0.1.05 spec/glue/fresh_env_spec.rb