Sha256: 8b2efc2fa7a3711d19289f28cc70a796a2fcad8be342e7bbf1976fbd039f50a2
Contents?: true
Size: 651 Bytes
Versions: 2
Compression:
Stored size: 651 Bytes
Contents
require 'spec_helper' module Alf describe Selector, "dive" do subject{ selector.dive(:a) } context 'on a single, not the same' do let(:selector){ Selector.coerce(:name) } it { should be_nil } end context 'on a single, same' do let(:selector){ Selector.coerce(:a) } it { should be_nil } end context 'on a composite, starting with' do let(:selector){ Selector.coerce([:a, :b, :c]) } it { should eq(Selector.coerce([:b, :c])) } end context 'on a composite, not starting with' do let(:selector){ Selector.coerce([:b, :a]) } it { should be_nil } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alf-core-0.15.0 | spec/unit/alf-types/selector/test_dive.rb |
alf-core-0.14.0 | spec/unit/alf-types/selector/test_dive.rb |