Sha256: d187f1b587b9aa5ae36663a0f59df0992e96243a384b6be8562b47915d767cf9
Contents?: true
Size: 875 Bytes
Versions: 4
Compression:
Stored size: 875 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/relation' module MiniKraken module Core describe Relation do subject { Relation.new('caro', 2) } context 'Initialization:' do it 'should be initialized with a name and an arity' do expect { Relation.new('caro', Arity.new(2, 2)) }.not_to raise_error end it 'should be initialized with a name and an integer' do expect { Relation.new('caro', 2) }.not_to raise_error end it 'should know its name' do expect(subject.name).to eq('caro') end it 'should know its arity' do expect(subject.arity).to eq(Arity.new(2, 2)) end end # context end # describe end # module end # module
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mini_kraken-0.3.03 | spec/core/relation_spec.rb |
mini_kraken-0.3.02 | spec/core/relation_spec.rb |
mini_kraken-0.3.01 | spec/core/relation_spec.rb |
mini_kraken-0.3.00 | spec/core/relation_spec.rb |