Sha256: 774cfdcb32199f45db263d101b2fc8b3b8ee7382236ff48cd12227f622ac40bc
Contents?: true
Size: 408 Bytes
Versions: 2
Compression:
Stored size: 408 Bytes
Contents
require 'spec_helper' module Alf describe Selector, "to_ruby_literal" do subject{ selector.to_ruby_literal } context 'on a single' do let(:selector){ Selector.coerce(:name) } it { should eq('Alf::Selector[:name]') } end context 'on a composite' do let(:selector){ Selector.coerce([:a, :name]) } it { should eq('Alf::Selector[[:a, :name]]') } 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_to_ruby_literal.rb |
alf-core-0.14.0 | spec/unit/alf-types/selector/test_to_ruby_literal.rb |