Sha256: 36c986cc3b1e179d33b971277c0a9f8b01cbc4c32f7d7b7c40a0aed221229dcd
Contents?: true
Size: 427 Bytes
Versions: 2
Compression:
Stored size: 427 Bytes
Contents
require 'spec_helper' require 'compo' require 'branch_shared_examples' require 'leaf_composite_shared_examples' RSpec.describe Compo::Branches::Constant do let(:value) { 3.141592653 } subject { Compo::Branches::Constant.new(value) } it_behaves_like 'a branch' it_behaves_like 'a leaf composite' describe '#value' do it 'returns the constant value' do expect(subject.value).to eq(value) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
compo-0.5.1 | spec/constant_branch_spec.rb |
compo-0.5.0 | spec/constant_branch_spec.rb |