Sha256: e03d907cc1a5760dea4c5ef5450cf6b6215995a45758e9ed1300ff0ecc6cf88d
Contents?: true
Size: 676 Bytes
Versions: 3
Compression:
Stored size: 676 Bytes
Contents
require 'spec_helper' describe AQL::Buffer, '#delimited' do let(:object) { described_class.new } subject { object.delimited(nodes) } context 'with empty nodes' do let(:nodes) { [] } its(:content) { should eql('') } it_should_behave_like 'a command method' end context 'with one argument' do let(:nodes) { [AQL::Node::Literal.build(1)] } its(:content) { should eql('1') } it_should_behave_like 'a command method' end context 'with multiple argments' do let(:nodes) { [AQL::Node::Literal.build(1), AQL::Node::Literal.build(2)] } its(:content) { should eql('1, 2') } it_should_behave_like 'a command method' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
aql-0.0.3 | spec/unit/aql/buffer/delimited_spec.rb |
aql-0.0.2 | spec/unit/aql/buffer/delimited_spec.rb |
aql-0.0.1 | spec/unit/aql/buffer/delimited_spec.rb |