Sha256: 5eee42302d67680d64d5865cdf6fc5d9e5e39535b0aefe9a2fa23bd4025621b8

Contents?: true

Size: 748 Bytes

Versions: 6

Compression:

Stored size: 748 Bytes

Contents

# frozen_string_literal: true

require_relative '../../../lib/zenlish/feature/boolean_domain'
require_relative '../../../lib/zenlish/feature/boolean_value' # Load the class under test

module Zenlish
  module Feature
    describe BooleanValue do
      let(:its_value) { false }
      subject { BooleanValue.new(its_value) }

      context 'Initialization:' do
        it 'should be initialized with a value argument' do
          expect { BooleanValue.new(its_value) }.not_to raise_error
        end
        
        it 'should know its internal value' do
          expect(subject.val.class).to eq(FalseClass)
        end
      end # context

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
zenlish-0.2.05 spec/zenlish/feature/boolean_value_spec.rb
zenlish-0.2.04 spec/zenlish/feature/boolean_value_spec.rb
zenlish-0.2.03 spec/zenlish/feature/boolean_value_spec.rb
zenlish-0.2.02 spec/zenlish/feature/boolean_value_spec.rb
zenlish-0.2.01 spec/zenlish/feature/boolean_value_spec.rb
zenlish-0.2.00 spec/zenlish/feature/boolean_value_spec.rb